class

Cri::Host

Inherits Reference < Object

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)
Source

Instance methods

agent(provider : Provider, session : Session = Session.new) : Agent
Source
api_clients
Source
auth
Source
builtins
Source
capabilities
Source
commands
Source
config
Source
default_model
Source
default_provider
Source
events
Source
extension_command(name : String) : Extensions::Manifest | Nil
Source
extensions
Source
invoker
Source
login_api_token(provider_id : String, flow_id : String, secret : String) : Auth::CredentialRef
Source
login_browser(provider_id : String, flow_id : String, &on_status : String -> ) : Auth::CredentialRef
Source
login_device(provider_id : String, flow_id : String, &on_status : String -> ) : Auth::CredentialRef
Source
logout_auth(provider_id : String, flow_id : String)
Source
model(model_id : String) : Provider
Source
model(model_ref : ModelRef) : Provider
Source
provider(provider_id : String, flow_id : String | Nil = nil, model_ref : ModelRef | Nil = nil) : Provider
Source
providers
Source
refresh_models(provider_id : String | Nil = nil) : Array(ModelRef)
Source
tools
Source
transports
Source