CliAcpDelegate
Category: Acp
Source: cli_acp_delegate.dart
CLI wiring for the ACP server: a [AcpServerDelegate] that creates a per-session [AgentCore] + tool registry through the harness's [ServiceLocator], runs prompts, and routes permission decisions through the harness's [PermissionGate].
One CLI process can host multiple ACP sessions concurrently — each gets its own AgentCore + tool registry but shares the [GlueConfig] / [Observability] / [SkillRuntime] from the locator's startup work.
Classes
CliAcpDelegate
Constructor
dart
CliAcpDelegate({required this.services})Properties
| Property | Type | Description |
|---|---|---|
services | AppServices | |
agent | AgentCore | |
gate | PermissionGate | |
activeController | StreamController<AgentEvent>? |
Methods
Future<String> createSession(SessionNewParams params)
`Stream<AgentEvent> prompt({
required String sessionId,
required String userMessage,
required Future<bool> Function(ToolCall call) requestPermission,
List<ContentPart> userContentParts = const [],
})`