@aaac/runtime 0.1.3 → 0.1.5
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/dist/adapters/adk-sdk.d.ts +2 -1
- package/dist/adapters/adk-sdk.js +18 -5
- package/dist/adapters/adk-sdk.js.map +1 -1
- package/dist/adapters/claude-agent-sdk.d.ts +2 -1
- package/dist/adapters/claude-agent-sdk.js +17 -0
- package/dist/adapters/claude-agent-sdk.js.map +1 -1
- package/dist/adapters/mock.d.ts +1 -1
- package/dist/adapters/openai-agents-sdk.d.ts +2 -1
- package/dist/adapters/openai-agents-sdk.js +22 -4
- package/dist/adapters/openai-agents-sdk.js.map +1 -1
- package/dist/chunk-ET6TGQRT.js +77 -0
- package/dist/chunk-ET6TGQRT.js.map +1 -0
- package/dist/chunk-LONLL3K2.js +94 -0
- package/dist/chunk-LONLL3K2.js.map +1 -0
- package/dist/index.d.ts +29 -17
- package/dist/index.js +30 -78
- package/dist/index.js.map +1 -1
- package/dist/schema-converter-LACA7P4O.js +7 -0
- package/dist/schema-converter-LACA7P4O.js.map +1 -0
- package/dist/{task-runner-CNj3Ujy0.d.ts → task-runner-szDOYtJV.d.ts} +24 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -42,6 +42,22 @@ declare class InMemoryStore implements MemoryStore {
|
|
|
42
42
|
delete(ref: MemoryRef): Promise<void>;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
interface LibraryToolDefinition {
|
|
46
|
+
toolId: string;
|
|
47
|
+
description: string;
|
|
48
|
+
module: string;
|
|
49
|
+
exportName: string;
|
|
50
|
+
inputSchema?: Record<string, unknown>;
|
|
51
|
+
outputSchema?: Record<string, unknown>;
|
|
52
|
+
}
|
|
53
|
+
interface LibraryToolRegistry {
|
|
54
|
+
register(def: LibraryToolDefinition): void;
|
|
55
|
+
get(toolId: string): LibraryToolDefinition | undefined;
|
|
56
|
+
getAll(): LibraryToolDefinition[];
|
|
57
|
+
execute(toolId: string, input: unknown): Promise<unknown>;
|
|
58
|
+
}
|
|
59
|
+
declare function createLibraryToolRegistry(): LibraryToolRegistry;
|
|
60
|
+
|
|
45
61
|
/**
|
|
46
62
|
* Candidate Agents — backend-neutral bridge for LLM-internal routing (model B)
|
|
47
63
|
*
|
|
@@ -309,6 +325,12 @@ interface AdapterSendOptions {
|
|
|
309
325
|
* The task's final output is still validated against the handoff schema.
|
|
310
326
|
*/
|
|
311
327
|
allowDynamicWorkflow?: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* In-process library tools to register with the SDK as function tools.
|
|
330
|
+
* Adapters convert these to their native tool format (Claude MCP, OpenAI
|
|
331
|
+
* function tools, ADK tools). I/O is validated against the tool's schemas.
|
|
332
|
+
*/
|
|
333
|
+
libraryTools?: LibraryToolRegistry;
|
|
312
334
|
}
|
|
313
335
|
/**
|
|
314
336
|
* Rich execution request for adapters that need more than a prompt string.
|
|
@@ -487,6 +509,7 @@ declare function runTask(adapter: SdkAdapter, taskId: string, context: TaskConte
|
|
|
487
509
|
fix_task: string;
|
|
488
510
|
revalidate_task?: string;
|
|
489
511
|
};
|
|
512
|
+
libraryTools?: LibraryToolRegistry;
|
|
490
513
|
}): Promise<TaskRunResult>;
|
|
491
514
|
|
|
492
|
-
export { type AdapterSendOptions as A, type CacheConfig as C, type EnvelopeParams as E, InMemoryStore as I, type MemoryRef as M, type ObserverEmitFn as O, type PromptBuilderOptions as P, type RetryDecision as R, type SdkAdapter as S, type TaskOutcome as T, type AgentExecutionRequest as a, type TaskContractLike as b, type AgentContractLike as c, type TaskContext as d, type MemoryStore as e, type TaskRunResult as f, type
|
|
515
|
+
export { type AdapterSendOptions as A, type CacheConfig as C, type EnvelopeParams as E, InMemoryStore as I, type LibraryToolRegistry as L, type MemoryRef as M, type ObserverEmitFn as O, type PromptBuilderOptions as P, type RetryDecision as R, type SdkAdapter as S, type TaskOutcome as T, type AgentExecutionRequest as a, type TaskContractLike as b, type AgentContractLike as c, type TaskContext as d, type MemoryStore as e, type TaskRunResult as f, type LibraryToolDefinition as g, type AgentProgressEvent as h, type CandidateAgent as i, type SplitPrompt as j, type TaskRunOptions as k, buildCandidateAgents as l, buildRetryFollowUp as m, buildSplitTaskPrompt as n, buildTaskPrompt as o, createExecutionEnvelope as p, createLibraryToolRegistry as q, emitSessionClose as r, emitSessionOpen as s, emitSubagentClose as t, emitSubagentOpen as u, extractStructuredResult as v, renderAgentSystemPrompt as w, runTask as x, zodSchemaToYamlExample as y, zodSchemaToPromptDescription as z };
|