dart_acp
library
Classes
AcpCapabilities
Advertised client capabilities in ACP initialization.
AcpClient
High-level ACP client that manages transport, session lifecycle,
and streams updates from the agent.
AcpConfig
Client configuration describing transport, providers, and capabilities.
AcpTimeouts
Collection of timeout knobs for ACP requests.
AcpTransport
Abstraction over the underlying transport (stdio, TCP, etc.).
AcpType
Base class for ACP types that support meta fields for extensibility.
AcpUpdate
Base class for typed session/update events.
AvailableCommand
Available command that can be executed.
AvailableCommandInput
Input specification for available commands.
AvailableCommandsUpdate
Update containing currently available commands for the agent.
ConfigOption
A configuration option available for a session.
ConfigOptionChoice
A choice within a config option.
ContentBlock
Base class for content blocks.
DefaultFsProvider
Default implementation enforcing a workspace jail.
DefaultPermissionProvider
Default provider with simple policy and optional callback override.
DefaultTerminalProvider
Default implementation backed by dart:io Process.
Diff
Diff information.
DiffChange
A single change in a diff.
DiffUpdate
File diff update with proposed changes.
ExtensionCapabilities
Custom capabilities advertised via _meta in capability objects.
ExtensionErrorCodes
ACP error codes for extension-related errors.
ExtensionMeta
Extension metadata that can be attached to any ACP type.
ExtensionParams
Parameters for sending an extension request.
ExtensionResponse
Result of sending an extension request.
FsCapabilities
File system capability flags for client-provided fs methods.
FsProvider
Abstraction for file system operations exposed to agents.
ImageContent
Image content block.
MessageDelta
Streaming message delta, for user/assistant content blocks.
ModeUpdate
Mode update indicating current session mode changed (extension).
PermissionOptions
Structured permission request options sent to a provider.
PermissionProvider
Provider interface for answering permission requests.
Plan
Execution plan with structured entries.
PlanEntry
A entry in an execution plan.
PlanUpdate
Update containing the agent's current execution plan.
ResourceContent
Resource link content block.
SessionCapabilities
Session capabilities advertised by an agent.
SessionInfo
Information about a session returned by session/list.
SessionListResult
Result of session/list request.
SessionResult
Result of session/new, session/load, session/resume, or session/fork.
StdinTransport
Transport that uses stdin/stdout for communication without spawning a process.
This allows the ACP client to communicate with an agent via standard I/O streams.
StdioTransport
Stdio-based transport that spawns the agent process.
TerminalCreated
Event indicating a terminal process was created.
TerminalEvent
Base class for terminal lifecycle events emitted for UI consumption.
TerminalExited
Event indicating a terminal process exited.
TerminalOutputEvent
Event containing current buffered terminal output and exit status.
TerminalProcessHandle
Handle for a managed terminal process.
TerminalProvider
Provider interface for creating and managing terminal processes.
TerminalReleased
Event indicating client released a terminal handle.
TextContent
Text content block.
ToolCall
Tool call information per latest ACP specification.
ToolCallLocation
Location information for tool calls.
ToolCallUpdate
Tool call creation/progress/completion update.
TurnEnded
Terminal update indicating a prompt turn is complete.
UnknownContent
Unknown content block for forward compatibility.
UnknownUpdate
Update type used for unclassified session/update payloads.