@springbrand/agent-runtime 0.2.0-alpha.58 → 0.2.0-alpha.59
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/package.json +1 -1
- package/src/runtime-agent.ts +8 -1
package/package.json
CHANGED
package/src/runtime-agent.ts
CHANGED
|
@@ -310,6 +310,13 @@ export interface RuntimeAgentConfigControls<Command, Change> {
|
|
|
310
310
|
): Promise<RuntimeConfigUpdateResult<Change>>;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
+
/** Type-only Host extension seam implemented by AgentRuntimeKernel. */
|
|
314
|
+
declare class RuntimeAgentHostSeam {
|
|
315
|
+
protected prepareToolInteractionResponse(
|
|
316
|
+
input: import("./runtime").ToolInteractionResponsePreparation,
|
|
317
|
+
): Promise<unknown | null>;
|
|
318
|
+
}
|
|
319
|
+
|
|
313
320
|
/**
|
|
314
321
|
* 表示 `defineRuntimeAgent` 生成类的实例。
|
|
315
322
|
*
|
|
@@ -320,7 +327,7 @@ export type RuntimeAgentInstance<
|
|
|
320
327
|
Env extends Cloudflare.Env = Cloudflare.Env,
|
|
321
328
|
Command = never,
|
|
322
329
|
Change = never,
|
|
323
|
-
> = Agent<Env, RuntimeState> & RuntimeAgentControls &
|
|
330
|
+
> = Agent<Env, RuntimeState> & RuntimeAgentHostSeam & RuntimeAgentControls &
|
|
324
331
|
RuntimeAgentConfigControls<Command, Change> & AgentToolChildAdapter<unknown, string>;
|
|
325
332
|
|
|
326
333
|
/**
|