@band-ai/sdk 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -388,7 +388,7 @@ pnpm install
388
388
  cp agent_config.yaml.example agent_config.yaml # add your credentials
389
389
 
390
390
  npx tsx examples/basic/basic-agent.ts
391
- npx tsx examples/openai/openai-agent.ts
391
+ npx tsx examples/openai/01_basic_agent.ts
392
392
  ```
393
393
 
394
394
  ## Architecture
@@ -7,7 +7,8 @@ import { m as ToolModelMessage, n as ToolModelSchema, M as MetadataMap } from '.
7
7
  import { u as GoogleADKMessages, s as GoogleADKHistoryConverter, e as A2ASessionState, A as A2AAuth, G as GatewaySessionState, a as A2AGatewayAdapterOptions, n as ParlantMessages, P as ParlantHistoryConverter, C as ChatTurn, v as OpencodeSessionState, O as OpencodeHistoryConverter, r as ACPClientSessionState } from './acp-client-DUXyczlF.js';
8
8
  import { c as createBandMcpBackend } from './backends-CgsPQa9B.js';
9
9
  import { M as McpToolRegistration } from './sdk-Cin80BTC.js';
10
- import { Client, ClientSideConnection, RequestPermissionRequest, McpServer, ClientCapabilities, SessionMode, SessionConfigOption, SessionConfigSelectOption } from '@agentclientprotocol/sdk';
10
+ import { SessionConfigOption, Client, ClientSideConnection, RequestPermissionRequest, McpServer, ClientCapabilities, SessionMode, SessionConfigSelectOption } from '@agentclientprotocol/sdk';
11
+ import { AgentFailure } from '@band-ai/band-sdk-core';
11
12
 
12
13
  type GenericAdapterHandler = (args: {
13
14
  message: PlatformMessage;
@@ -1338,6 +1339,72 @@ declare class ClaudeSDKAdapter extends SimpleAdapter<HistoryProvider, AdapterToo
1338
1339
  private reportSessionId;
1339
1340
  }
1340
1341
 
1342
+ /** Structured Band failure code when an ACP session config selection cannot be applied. */
1343
+ declare const FAILURE_CODE_SESSION_CONFIG = "session_config";
1344
+ /** Reason when a successful setter omits an array `configOptions` catalog. */
1345
+ declare const MISSING_CONFIG_OPTIONS_REASON = "missing_config_options";
1346
+ interface ACPConfigSelection {
1347
+ configId: string;
1348
+ value: string | undefined;
1349
+ }
1350
+ /**
1351
+ * Session configuration selected by a caller. Use an array when the order is
1352
+ * significant: JavaScript object enumeration sorts array-index property names.
1353
+ * The record form remains supported for existing callers.
1354
+ */
1355
+ type ACPConfigSelections$1 = readonly ACPConfigSelection[] | Readonly<Record<string, string | undefined>>;
1356
+ /**
1357
+ * Deterministic failure applying ACP session configuration. Carries provider,
1358
+ * option id, and optional ACP JSON-RPC code so callers can report a structured
1359
+ * Band failure instead of silently skipping the selection.
1360
+ */
1361
+ declare class AcpSessionConfigError extends Error {
1362
+ readonly provider: string;
1363
+ readonly sessionId: string;
1364
+ readonly optionId: string;
1365
+ readonly selectedValue: string | undefined;
1366
+ readonly acpCode: number | undefined;
1367
+ readonly detail: unknown;
1368
+ readonly timedOut: boolean;
1369
+ constructor(input: {
1370
+ provider: string;
1371
+ sessionId: string;
1372
+ optionId: string;
1373
+ message: string;
1374
+ selectedValue?: string;
1375
+ acpCode?: number;
1376
+ detail?: unknown;
1377
+ cause?: unknown;
1378
+ timedOut?: boolean;
1379
+ });
1380
+ toAgentFailure(): AgentFailure;
1381
+ }
1382
+ type SessionConfigOptionSetter = (params: {
1383
+ sessionId: string;
1384
+ configId: string;
1385
+ value: string;
1386
+ }) => Promise<{
1387
+ configOptions?: readonly SessionConfigOption[] | null;
1388
+ }>;
1389
+ interface ApplySessionConfigSelectionsInput {
1390
+ provider: string;
1391
+ sessionId: string;
1392
+ catalog: readonly SessionConfigOption[];
1393
+ selections: ACPConfigSelections$1;
1394
+ setOption: SessionConfigOptionSetter;
1395
+ timeoutMs: number;
1396
+ }
1397
+ interface ApplySessionConfigSelectionsResult {
1398
+ catalog: readonly SessionConfigOption[];
1399
+ }
1400
+ /**
1401
+ * Applies ACP config selections in caller order. Each successful
1402
+ * `session/set_config_option` response replaces the live catalog used to
1403
+ * validate the next selection. Invalid or rejected selections throw
1404
+ * {@link AcpSessionConfigError} — never silently skip or default.
1405
+ */
1406
+ declare function applySessionConfigSelections(input: ApplySessionConfigSelectionsInput): Promise<ApplySessionConfigSelectionsResult>;
1407
+
1341
1408
  interface ACPClientConnectionHandle {
1342
1409
  connection: ClientSideConnection;
1343
1410
  stop(): Promise<void>;
@@ -1370,8 +1437,10 @@ interface ACPConfigRequest {
1370
1437
  sessionId: string;
1371
1438
  configOptions: readonly SessionConfigOption[];
1372
1439
  }
1373
- type ACPConfigSelections = Readonly<Record<string, string | undefined>>;
1440
+ type ACPConfigSelections = ACPConfigSelections$1;
1374
1441
  interface ACPClientAdapterBaseOptions {
1442
+ /** Merged into the first-turn system context (character/persona sections for examples). */
1443
+ customSection?: string;
1375
1444
  cwd?: string;
1376
1445
  env?: Record<string, string>;
1377
1446
  mcpServers?: McpServer[];
@@ -1430,6 +1499,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1430
1499
  private readonly permissionTimeoutMs;
1431
1500
  private readonly turnTimeoutMs;
1432
1501
  private readonly logger;
1502
+ private readonly customSection?;
1433
1503
  private backend;
1434
1504
  private backendPromise;
1435
1505
  private client;
@@ -1440,6 +1510,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1440
1510
  private started;
1441
1511
  private systemPrompt;
1442
1512
  private spawnPromise;
1513
+ private readonly connectionRetirements;
1443
1514
  private connectionGeneration;
1444
1515
  constructor(options: ACPClientAdapterOptions);
1445
1516
  onStarted(agentName: string, agentDescription: string): Promise<void>;
@@ -1458,6 +1529,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1458
1529
  private nextRoomGeneration;
1459
1530
  private isCurrentGeneration;
1460
1531
  private raceAgainstConnectionClose;
1532
+ private raceAgainstConnectionRetirement;
1461
1533
  private unlinkRoom;
1462
1534
  private unlinkOwner;
1463
1535
  private sessionKey;
@@ -1466,6 +1538,9 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1466
1538
  private getOrCreateSession;
1467
1539
  private establishSession;
1468
1540
  private configureSessionConfig;
1541
+ private abandonFailedConfigSession;
1542
+ private evictAbandonedSession;
1543
+ private retireConnection;
1469
1544
  private linkOrAbandon;
1470
1545
  private configureSessionMode;
1471
1546
  private configureSessionModel;
@@ -1510,4 +1585,4 @@ declare class CopilotACPAdapter extends ACPClientAdapter {
1510
1585
  constructor(options?: CopilotACPAdapterOptions);
1511
1586
  }
1512
1587
 
1513
- export { type ToolCallingModel as $, A2AAdapter as A, type CopilotACPTcpOptions as B, CODEX_REASONING_EFFORTS as C, DEFAULT_COPILOT_ACP_COMMAND as D, DEFAULT_OMP_ACP_COMMAND as E, type GeminiAdapterOptions as F, GeminiAdapter as G, GenericAdapter as H, type GenericAdapterHandler as I, GoogleADKAdapter as J, type GoogleADKAdapterOptions as K, LangGraphAdapter as L, type LangGraphAdapterOptions as M, type LangGraphGraph as N, LettaAdapter as O, type LettaAdapterOptions as P, OmpACPAdapter as Q, type OmpACPAdapterOptions as R, OpenAIAdapter as S, type OpenAIAdapterOptions as T, OpencodeAdapter as U, type OpencodeAdapterConfig as V, type OpencodeApprovalMode as W, type OpencodeApprovalReply as X, type OpencodeQuestionMode as Y, ParlantAdapter as Z, type ParlantAdapterOptions as _, type A2AAdapterOptions as a, VercelAISDKAdapter as a0, type VercelAISDKAdapterOptions as a1, type A2AClientFactory as a2, type A2AClientLike as a3, type ACPPermissionAbandonReason as a4, type ACPPermissionEndReason as a5, type ACPPermissionRequest as a6, type AnthropicClientFactory as a7, AnthropicToolCallingModel as a8, type AnthropicToolCallingModelOptions as a9, type OpenAIToolCallingModelOptions as aA, type OpencodeClientLike as aB, type ParlantClientFactory as aC, type ParlantClientLike as aD, type ToolCall as aE, ToolCallingAdapter as aF, type ToolCallingAdapterOptions as aG, type ToolCallingModelRequest as aH, type ToolCallingResponse as aI, type ToolResult as aJ, type TurnStartParams as aK, VercelAISDKToolCallingModel as aL, type VercelAISDKToolCallingModelOptions as aM, runSingleToolRound as aN, type ClaudeSDKQuery as aa, type ClaudeSDKQueryParams as ab, CodexAppServerStdioClient as ac, type CodexClientLike as ad, CodexJsonRpcError as ae, type DynamicToolCallParams as af, type DynamicToolCallResponse as ag, type DynamicToolSpec as ah, type GeminiClientFactory as ai, GeminiToolCallingModel as aj, type GeminiToolCallingModelOptions as ak, HttpOpencodeClient as al, type HttpOpencodeClientOptions as am, HttpStatusError as an, type LettaAgentCreateParams as ao, type LettaClientFactory as ap, type LettaClientLike as aq, LettaHistoryConverter as ar, type LettaMessage as as, type LettaMessageCreateParams as at, type LettaMessages as au, type LettaRequestOptions as av, type LettaResponse as aw, type LettaResponseMessage as ax, type OpenAIClientFactory as ay, OpenAIToolCallingModel as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, type ACPConfigRequest as h, type ACPConfigSelections as i, AnthropicAdapter as j, type AnthropicAdapterOptions as k, CODEX_REASONING_SUMMARIES as l, CODEX_WEB_SEARCH_MODES as m, type ClaudePermissionMode as n, ClaudeSDKAdapter as o, type ClaudeSDKAdapterOptions as p, CodexAdapter as q, type CodexAdapterConfig as r, type CodexApprovalPolicy as s, type CodexReasoningEffort as t, type CodexReasoningSummary as u, type CodexSandboxMode as v, type CodexWebSearchMode as w, CopilotACPAdapter as x, type CopilotACPAdapterOptions as y, type CopilotACPStdioOptions as z };
1588
+ export { type OpencodeQuestionMode as $, A2AAdapter as A, type CopilotACPStdioOptions as B, CODEX_REASONING_EFFORTS as C, type CopilotACPTcpOptions as D, DEFAULT_COPILOT_ACP_COMMAND as E, DEFAULT_OMP_ACP_COMMAND as F, FAILURE_CODE_SESSION_CONFIG as G, GeminiAdapter as H, type GeminiAdapterOptions as I, GenericAdapter as J, type GenericAdapterHandler as K, GoogleADKAdapter as L, type GoogleADKAdapterOptions as M, LangGraphAdapter as N, type LangGraphAdapterOptions as O, type LangGraphGraph as P, LettaAdapter as Q, type LettaAdapterOptions as R, MISSING_CONFIG_OPTIONS_REASON as S, OmpACPAdapter as T, type OmpACPAdapterOptions as U, OpenAIAdapter as V, type OpenAIAdapterOptions as W, OpencodeAdapter as X, type OpencodeAdapterConfig as Y, type OpencodeApprovalMode as Z, type OpencodeApprovalReply as _, type A2AAdapterOptions as a, ParlantAdapter as a0, type ParlantAdapterOptions as a1, type ToolCallingModel as a2, VercelAISDKAdapter as a3, type VercelAISDKAdapterOptions as a4, applySessionConfigSelections as a5, type A2AClientFactory as a6, type A2AClientLike as a7, type ACPPermissionAbandonReason as a8, type ACPPermissionEndReason as a9, type LettaResponse as aA, type LettaResponseMessage as aB, type OpenAIClientFactory as aC, OpenAIToolCallingModel as aD, type OpenAIToolCallingModelOptions as aE, type OpencodeClientLike as aF, type ParlantClientFactory as aG, type ParlantClientLike as aH, type ToolCall as aI, ToolCallingAdapter as aJ, type ToolCallingAdapterOptions as aK, type ToolCallingModelRequest as aL, type ToolCallingResponse as aM, type ToolResult as aN, type TurnStartParams as aO, VercelAISDKToolCallingModel as aP, type VercelAISDKToolCallingModelOptions as aQ, runSingleToolRound as aR, type ACPPermissionRequest as aa, type AnthropicClientFactory as ab, AnthropicToolCallingModel as ac, type AnthropicToolCallingModelOptions as ad, type ClaudeSDKQuery as ae, type ClaudeSDKQueryParams as af, CodexAppServerStdioClient as ag, type CodexClientLike as ah, CodexJsonRpcError as ai, type DynamicToolCallParams as aj, type DynamicToolCallResponse as ak, type DynamicToolSpec as al, type GeminiClientFactory as am, GeminiToolCallingModel as an, type GeminiToolCallingModelOptions as ao, HttpOpencodeClient as ap, type HttpOpencodeClientOptions as aq, HttpStatusError as ar, type LettaAgentCreateParams as as, type LettaClientFactory as at, type LettaClientLike as au, LettaHistoryConverter as av, type LettaMessage as aw, type LettaMessageCreateParams as ax, type LettaMessages as ay, type LettaRequestOptions as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, type ACPConfigRequest as h, type ACPConfigSelections as i, AcpSessionConfigError as j, AnthropicAdapter as k, type AnthropicAdapterOptions as l, CODEX_REASONING_SUMMARIES as m, CODEX_WEB_SEARCH_MODES as n, type ClaudePermissionMode as o, ClaudeSDKAdapter as p, type ClaudeSDKAdapterOptions as q, CodexAdapter as r, type CodexAdapterConfig as s, type CodexApprovalPolicy as t, type CodexReasoningEffort as u, type CodexReasoningSummary as v, type CodexSandboxMode as w, type CodexWebSearchMode as x, CopilotACPAdapter as y, type CopilotACPAdapterOptions as z };
@@ -7,7 +7,8 @@ import { m as ToolModelMessage, n as ToolModelSchema, M as MetadataMap } from '.
7
7
  import { u as GoogleADKMessages, s as GoogleADKHistoryConverter, e as A2ASessionState, A as A2AAuth, G as GatewaySessionState, a as A2AGatewayAdapterOptions, n as ParlantMessages, P as ParlantHistoryConverter, C as ChatTurn, v as OpencodeSessionState, O as OpencodeHistoryConverter, r as ACPClientSessionState } from './acp-client-D-I_5lK-.cjs';
8
8
  import { c as createBandMcpBackend } from './backends-Dh2WXcHQ.cjs';
9
9
  import { M as McpToolRegistration } from './sdk-CXNqzoY1.cjs';
10
- import { Client, ClientSideConnection, RequestPermissionRequest, McpServer, ClientCapabilities, SessionMode, SessionConfigOption, SessionConfigSelectOption } from '@agentclientprotocol/sdk';
10
+ import { SessionConfigOption, Client, ClientSideConnection, RequestPermissionRequest, McpServer, ClientCapabilities, SessionMode, SessionConfigSelectOption } from '@agentclientprotocol/sdk';
11
+ import { AgentFailure } from '@band-ai/band-sdk-core';
11
12
 
12
13
  type GenericAdapterHandler = (args: {
13
14
  message: PlatformMessage;
@@ -1338,6 +1339,72 @@ declare class ClaudeSDKAdapter extends SimpleAdapter<HistoryProvider, AdapterToo
1338
1339
  private reportSessionId;
1339
1340
  }
1340
1341
 
1342
+ /** Structured Band failure code when an ACP session config selection cannot be applied. */
1343
+ declare const FAILURE_CODE_SESSION_CONFIG = "session_config";
1344
+ /** Reason when a successful setter omits an array `configOptions` catalog. */
1345
+ declare const MISSING_CONFIG_OPTIONS_REASON = "missing_config_options";
1346
+ interface ACPConfigSelection {
1347
+ configId: string;
1348
+ value: string | undefined;
1349
+ }
1350
+ /**
1351
+ * Session configuration selected by a caller. Use an array when the order is
1352
+ * significant: JavaScript object enumeration sorts array-index property names.
1353
+ * The record form remains supported for existing callers.
1354
+ */
1355
+ type ACPConfigSelections$1 = readonly ACPConfigSelection[] | Readonly<Record<string, string | undefined>>;
1356
+ /**
1357
+ * Deterministic failure applying ACP session configuration. Carries provider,
1358
+ * option id, and optional ACP JSON-RPC code so callers can report a structured
1359
+ * Band failure instead of silently skipping the selection.
1360
+ */
1361
+ declare class AcpSessionConfigError extends Error {
1362
+ readonly provider: string;
1363
+ readonly sessionId: string;
1364
+ readonly optionId: string;
1365
+ readonly selectedValue: string | undefined;
1366
+ readonly acpCode: number | undefined;
1367
+ readonly detail: unknown;
1368
+ readonly timedOut: boolean;
1369
+ constructor(input: {
1370
+ provider: string;
1371
+ sessionId: string;
1372
+ optionId: string;
1373
+ message: string;
1374
+ selectedValue?: string;
1375
+ acpCode?: number;
1376
+ detail?: unknown;
1377
+ cause?: unknown;
1378
+ timedOut?: boolean;
1379
+ });
1380
+ toAgentFailure(): AgentFailure;
1381
+ }
1382
+ type SessionConfigOptionSetter = (params: {
1383
+ sessionId: string;
1384
+ configId: string;
1385
+ value: string;
1386
+ }) => Promise<{
1387
+ configOptions?: readonly SessionConfigOption[] | null;
1388
+ }>;
1389
+ interface ApplySessionConfigSelectionsInput {
1390
+ provider: string;
1391
+ sessionId: string;
1392
+ catalog: readonly SessionConfigOption[];
1393
+ selections: ACPConfigSelections$1;
1394
+ setOption: SessionConfigOptionSetter;
1395
+ timeoutMs: number;
1396
+ }
1397
+ interface ApplySessionConfigSelectionsResult {
1398
+ catalog: readonly SessionConfigOption[];
1399
+ }
1400
+ /**
1401
+ * Applies ACP config selections in caller order. Each successful
1402
+ * `session/set_config_option` response replaces the live catalog used to
1403
+ * validate the next selection. Invalid or rejected selections throw
1404
+ * {@link AcpSessionConfigError} — never silently skip or default.
1405
+ */
1406
+ declare function applySessionConfigSelections(input: ApplySessionConfigSelectionsInput): Promise<ApplySessionConfigSelectionsResult>;
1407
+
1341
1408
  interface ACPClientConnectionHandle {
1342
1409
  connection: ClientSideConnection;
1343
1410
  stop(): Promise<void>;
@@ -1370,8 +1437,10 @@ interface ACPConfigRequest {
1370
1437
  sessionId: string;
1371
1438
  configOptions: readonly SessionConfigOption[];
1372
1439
  }
1373
- type ACPConfigSelections = Readonly<Record<string, string | undefined>>;
1440
+ type ACPConfigSelections = ACPConfigSelections$1;
1374
1441
  interface ACPClientAdapterBaseOptions {
1442
+ /** Merged into the first-turn system context (character/persona sections for examples). */
1443
+ customSection?: string;
1375
1444
  cwd?: string;
1376
1445
  env?: Record<string, string>;
1377
1446
  mcpServers?: McpServer[];
@@ -1430,6 +1499,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1430
1499
  private readonly permissionTimeoutMs;
1431
1500
  private readonly turnTimeoutMs;
1432
1501
  private readonly logger;
1502
+ private readonly customSection?;
1433
1503
  private backend;
1434
1504
  private backendPromise;
1435
1505
  private client;
@@ -1440,6 +1510,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1440
1510
  private started;
1441
1511
  private systemPrompt;
1442
1512
  private spawnPromise;
1513
+ private readonly connectionRetirements;
1443
1514
  private connectionGeneration;
1444
1515
  constructor(options: ACPClientAdapterOptions);
1445
1516
  onStarted(agentName: string, agentDescription: string): Promise<void>;
@@ -1458,6 +1529,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1458
1529
  private nextRoomGeneration;
1459
1530
  private isCurrentGeneration;
1460
1531
  private raceAgainstConnectionClose;
1532
+ private raceAgainstConnectionRetirement;
1461
1533
  private unlinkRoom;
1462
1534
  private unlinkOwner;
1463
1535
  private sessionKey;
@@ -1466,6 +1538,9 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1466
1538
  private getOrCreateSession;
1467
1539
  private establishSession;
1468
1540
  private configureSessionConfig;
1541
+ private abandonFailedConfigSession;
1542
+ private evictAbandonedSession;
1543
+ private retireConnection;
1469
1544
  private linkOrAbandon;
1470
1545
  private configureSessionMode;
1471
1546
  private configureSessionModel;
@@ -1510,4 +1585,4 @@ declare class CopilotACPAdapter extends ACPClientAdapter {
1510
1585
  constructor(options?: CopilotACPAdapterOptions);
1511
1586
  }
1512
1587
 
1513
- export { type ToolCallingModel as $, A2AAdapter as A, type CopilotACPTcpOptions as B, CODEX_REASONING_EFFORTS as C, DEFAULT_COPILOT_ACP_COMMAND as D, DEFAULT_OMP_ACP_COMMAND as E, type GeminiAdapterOptions as F, GeminiAdapter as G, GenericAdapter as H, type GenericAdapterHandler as I, GoogleADKAdapter as J, type GoogleADKAdapterOptions as K, LangGraphAdapter as L, type LangGraphAdapterOptions as M, type LangGraphGraph as N, LettaAdapter as O, type LettaAdapterOptions as P, OmpACPAdapter as Q, type OmpACPAdapterOptions as R, OpenAIAdapter as S, type OpenAIAdapterOptions as T, OpencodeAdapter as U, type OpencodeAdapterConfig as V, type OpencodeApprovalMode as W, type OpencodeApprovalReply as X, type OpencodeQuestionMode as Y, ParlantAdapter as Z, type ParlantAdapterOptions as _, type A2AAdapterOptions as a, VercelAISDKAdapter as a0, type VercelAISDKAdapterOptions as a1, type A2AClientFactory as a2, type A2AClientLike as a3, type ACPPermissionAbandonReason as a4, type ACPPermissionEndReason as a5, type ACPPermissionRequest as a6, type AnthropicClientFactory as a7, AnthropicToolCallingModel as a8, type AnthropicToolCallingModelOptions as a9, type OpenAIToolCallingModelOptions as aA, type OpencodeClientLike as aB, type ParlantClientFactory as aC, type ParlantClientLike as aD, type ToolCall as aE, ToolCallingAdapter as aF, type ToolCallingAdapterOptions as aG, type ToolCallingModelRequest as aH, type ToolCallingResponse as aI, type ToolResult as aJ, type TurnStartParams as aK, VercelAISDKToolCallingModel as aL, type VercelAISDKToolCallingModelOptions as aM, runSingleToolRound as aN, type ClaudeSDKQuery as aa, type ClaudeSDKQueryParams as ab, CodexAppServerStdioClient as ac, type CodexClientLike as ad, CodexJsonRpcError as ae, type DynamicToolCallParams as af, type DynamicToolCallResponse as ag, type DynamicToolSpec as ah, type GeminiClientFactory as ai, GeminiToolCallingModel as aj, type GeminiToolCallingModelOptions as ak, HttpOpencodeClient as al, type HttpOpencodeClientOptions as am, HttpStatusError as an, type LettaAgentCreateParams as ao, type LettaClientFactory as ap, type LettaClientLike as aq, LettaHistoryConverter as ar, type LettaMessage as as, type LettaMessageCreateParams as at, type LettaMessages as au, type LettaRequestOptions as av, type LettaResponse as aw, type LettaResponseMessage as ax, type OpenAIClientFactory as ay, OpenAIToolCallingModel as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, type ACPConfigRequest as h, type ACPConfigSelections as i, AnthropicAdapter as j, type AnthropicAdapterOptions as k, CODEX_REASONING_SUMMARIES as l, CODEX_WEB_SEARCH_MODES as m, type ClaudePermissionMode as n, ClaudeSDKAdapter as o, type ClaudeSDKAdapterOptions as p, CodexAdapter as q, type CodexAdapterConfig as r, type CodexApprovalPolicy as s, type CodexReasoningEffort as t, type CodexReasoningSummary as u, type CodexSandboxMode as v, type CodexWebSearchMode as w, CopilotACPAdapter as x, type CopilotACPAdapterOptions as y, type CopilotACPStdioOptions as z };
1588
+ export { type OpencodeQuestionMode as $, A2AAdapter as A, type CopilotACPStdioOptions as B, CODEX_REASONING_EFFORTS as C, type CopilotACPTcpOptions as D, DEFAULT_COPILOT_ACP_COMMAND as E, DEFAULT_OMP_ACP_COMMAND as F, FAILURE_CODE_SESSION_CONFIG as G, GeminiAdapter as H, type GeminiAdapterOptions as I, GenericAdapter as J, type GenericAdapterHandler as K, GoogleADKAdapter as L, type GoogleADKAdapterOptions as M, LangGraphAdapter as N, type LangGraphAdapterOptions as O, type LangGraphGraph as P, LettaAdapter as Q, type LettaAdapterOptions as R, MISSING_CONFIG_OPTIONS_REASON as S, OmpACPAdapter as T, type OmpACPAdapterOptions as U, OpenAIAdapter as V, type OpenAIAdapterOptions as W, OpencodeAdapter as X, type OpencodeAdapterConfig as Y, type OpencodeApprovalMode as Z, type OpencodeApprovalReply as _, type A2AAdapterOptions as a, ParlantAdapter as a0, type ParlantAdapterOptions as a1, type ToolCallingModel as a2, VercelAISDKAdapter as a3, type VercelAISDKAdapterOptions as a4, applySessionConfigSelections as a5, type A2AClientFactory as a6, type A2AClientLike as a7, type ACPPermissionAbandonReason as a8, type ACPPermissionEndReason as a9, type LettaResponse as aA, type LettaResponseMessage as aB, type OpenAIClientFactory as aC, OpenAIToolCallingModel as aD, type OpenAIToolCallingModelOptions as aE, type OpencodeClientLike as aF, type ParlantClientFactory as aG, type ParlantClientLike as aH, type ToolCall as aI, ToolCallingAdapter as aJ, type ToolCallingAdapterOptions as aK, type ToolCallingModelRequest as aL, type ToolCallingResponse as aM, type ToolResult as aN, type TurnStartParams as aO, VercelAISDKToolCallingModel as aP, type VercelAISDKToolCallingModelOptions as aQ, runSingleToolRound as aR, type ACPPermissionRequest as aa, type AnthropicClientFactory as ab, AnthropicToolCallingModel as ac, type AnthropicToolCallingModelOptions as ad, type ClaudeSDKQuery as ae, type ClaudeSDKQueryParams as af, CodexAppServerStdioClient as ag, type CodexClientLike as ah, CodexJsonRpcError as ai, type DynamicToolCallParams as aj, type DynamicToolCallResponse as ak, type DynamicToolSpec as al, type GeminiClientFactory as am, GeminiToolCallingModel as an, type GeminiToolCallingModelOptions as ao, HttpOpencodeClient as ap, type HttpOpencodeClientOptions as aq, HttpStatusError as ar, type LettaAgentCreateParams as as, type LettaClientFactory as at, type LettaClientLike as au, LettaHistoryConverter as av, type LettaMessage as aw, type LettaMessageCreateParams as ax, type LettaMessages as ay, type LettaRequestOptions as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, type ACPConfigRequest as h, type ACPConfigSelections as i, AcpSessionConfigError as j, AnthropicAdapter as k, type AnthropicAdapterOptions as l, CODEX_REASONING_SUMMARIES as m, CODEX_WEB_SEARCH_MODES as n, type ClaudePermissionMode as o, ClaudeSDKAdapter as p, type ClaudeSDKAdapterOptions as q, CodexAdapter as r, type CodexAdapterConfig as s, type CodexApprovalPolicy as t, type CodexReasoningEffort as u, type CodexReasoningSummary as v, type CodexSandboxMode as w, type CodexWebSearchMode as x, CopilotACPAdapter as y, type CopilotACPAdapterOptions as z };