Module session

Module session 

Source
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
ConversationTurn
A single turn in the conversation
ModelPreferences
Model preferences for session
PermissionOption
A permission option presented to the user
RequestPermissionParams
Parameters for session/request_permission method (client callable by agent)
SessionCancelParams
Parameters for session/cancel method
SessionLoadParams
Parameters for session/load method
SessionLoadResult
Result of session/load method
SessionNewParams
Parameters for session/new method
SessionNewResult
Result of session/new method
SessionPromptParams
Parameters for session/prompt method
SessionPromptResult
Result of session/prompt method
SessionUpdateNotification
Session update notification payload
ToolCallRecord
Record of a tool call
WorkspaceContext
Workspace context for session initialization

Enums§

PromptContent
Prompt content types
RequestPermissionResult
Result of session/request_permission
SessionState
Session state enumeration
SessionUpdate
Session update types
TurnStatus
Turn completion status