colmugx/acp/agent/protocol does not have a README file
pub(all) suberror AgentProtocolError {
NotInitialized(method_name~ : String)
AlreadyInitialized
CapabilityDenied(method_name~ : String, capability~ : String)
AuthenticationRequired(method_name~ : String)
AuthenticationMethodNotAdvertised(method_id~ : String)
AuthenticationNotRequired
AlreadyAuthenticated
NotAuthenticated
InvalidEvent(reason~ : String)
} derive(Eq, Debug)pub(all) enum AgentProtocolCommand {
SendInitialize(result~ : InitializeResult, accepted~ : Bool)
DispatchRequest(AgentRequest)
DispatchNotification(AgentNotification)
Authenticate(method_id~ : String)
Logout
CancelSession(session_id~ : String)
CancelRequest(request_id~ : RequestId)
} derive(Eq, Debug)pub(all) struct AgentProtocolConfig {
agent_capabilities : ProtocolNullable[AgentCapabilities]
auth_methods : ProtocolNullable[Array[AuthMethod]]
agent_info : ProtocolNullable[Implementation]
} derive(Eq, Debug)pub(all) enum AgentProtocolEvent {
Request(AgentRequest)
Notification(AgentNotification)
AuthenticationSucceeded(method_id~ : String)
LoggedOut
} derive(Eq, Debug)pub(all) struct AgentProtocolState {
phase : AgentProtocolPhase
protocol_version : ProtocolNullable[Int]
client_capabilities : ProtocolNullable[ClientCapabilities]
client_info : ProtocolNullable[Implementation]
authentication : AgentAuthenticationState
config : AgentProtocolConfig
} derive(Eq, Debug)pub(all) struct AgentProtocolStep {
state : AgentProtocolState
commands : Array[AgentProtocolCommand]
} derive(Eq, Debug)fn agent_protocol_reduce(state : AgentProtocolState, event : AgentProtocolEvent) -> AgentProtocolStep raise AgentProtocolErrorInstall
Download zipType-safe Agent Client Protocol (ACP) SDK for MoonBit.
Dependencies