ACPex.Schema.Connection.InitializeResponse (ACPex v0.1.0)
View SourceResponse from the agent with its capabilities.
Sent by the agent in response to an InitializeRequest. This message communicates what features the agent supports.
Required Fields
protocol_version
- The protocol version the agent supports (integer)
Optional Fields
agent_capabilities
- Agent capability information (map)auth_methods
- List of supported authentication methods (list of maps)meta
- Additional metadata (map)
Example
%ACPex.Schema.Connection.InitializeResponse{
protocol_version: 1,
agent_capabilities: %{
"sessions" => %{"new" => true, "load" => false}
},
auth_methods: []
}
JSON Representation
The struct is encoded with camelCase keys for protocol compliance:
{
"protocolVersion": 1,
"agentCapabilities": {
"sessions": {"new": true, "load": false}
}
}
Summary
Functions
Creates a changeset for validation.
Types
Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Creates a changeset for validation.
Required Fields
protocol_version
- Must be present and must be an integer
Examples
iex> changeset(%InitializeResponse{}, %{"protocolVersion" => 1})
#Ecto.Changeset<valid?: true, ...>