Expand description
ACP session types and lifecycle management
This module implements the session lifecycle as defined by ACP:
- Session creation (session/new)
- Session loading (session/load)
- Prompt handling (session/prompt)
- Session updates (session/update notifications)
Reference: https://agentclientprotocol.com/llms.txt
Structs§
- AcpSession
- ACP Session representation
- Conversation
Turn - A single turn in the conversation
- Model
Preferences - Model preferences for session
- Permission
Option - A permission option presented to the user
- Request
Permission Params - Parameters for session/request_permission method (client callable by agent)
- Server
Request Notification - Wrapper for a
server/requestSSE event notification. - Session
Cancel Params - Parameters for session/cancel method
- Session
Load Params - Parameters for session/load method
- Session
Load Result - Result of session/load method
- Session
NewParams - Parameters for session/new method
- Session
NewResult - Result of session/new method
- Session
Prompt Params - Parameters for session/prompt method
- Session
Prompt Result - Result of session/prompt method
- Session
Update Notification - Session update notification payload
- Tool
Call Record - Record of a tool call
- Tool
Execution Request - Server-to-client tool execution request (arrives via
server/requestSSE event). - Tool
Execution Result - Result of a client-side tool execution, sent back via
client/response. - Workspace
Context - Workspace context for session initialization
Enums§
- Prompt
Content - Prompt content types
- Request
Permission Result - Result of session/request_permission
- Session
State - Session state enumeration
- Session
Update - Session update types
- Turn
Status - Turn completion status