Cri::Host
Composition root for the trusted Crystal kernel. Features are registered behind narrow interfaces so the CLI/TUI do not know where tools came from.
Constructors
new(config : Config = Config.load, events : EventBus = EventBus.new, capabilities : API::CapabilityBroker = API::CapabilityBroker.deny_all, auth : Auth::Broker = Auth::Broker.new)
SourceInstance methods
agent(provider : Provider, session : Session = Session.new) : Agent
Sourceapi_clients
Sourceauth
Sourcebuiltins
Sourcecapabilities
Sourcecommands
Sourceconfig
Sourcedefault_model
Sourcedefault_provider
Sourceevents
Sourceextensions
Sourceinvoker
Sourcelogin_browser(provider_id : String, flow_id : String, &on_status : String -> ) : Auth::CredentialRef
Sourcemodel(model_ref : ModelRef) : Provider
Sourceprovider(provider_id : String, flow_id : String | Nil = nil, model_ref : ModelRef | Nil = nil) : Provider
Sourceproviders
Sourcetools
Sourcetransports
Source