@strands-agents/sdk 1.0.0-rc.5 → 1.0.0
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/LICENSE +175 -0
- package/README.md +340 -0
- package/dist/src/__fixtures__/agent-helpers.d.ts +6 -0
- package/dist/src/__fixtures__/agent-helpers.d.ts.map +1 -1
- package/dist/src/__fixtures__/agent-helpers.js +3 -1
- package/dist/src/__fixtures__/agent-helpers.js.map +1 -1
- package/dist/src/__fixtures__/mock-plugin.d.ts.map +1 -1
- package/dist/src/__fixtures__/mock-plugin.js +3 -1
- package/dist/src/__fixtures__/mock-plugin.js.map +1 -1
- package/dist/src/__fixtures__/tool-helpers.d.ts +3 -1
- package/dist/src/__fixtures__/tool-helpers.d.ts.map +1 -1
- package/dist/src/__fixtures__/tool-helpers.js +3 -1
- package/dist/src/__fixtures__/tool-helpers.js.map +1 -1
- package/dist/src/__tests__/mcp.test.js +222 -2
- package/dist/src/__tests__/mcp.test.js.map +1 -1
- package/dist/src/a2a/__tests__/events.test.js +2 -0
- package/dist/src/a2a/__tests__/events.test.js.map +1 -1
- package/dist/src/a2a/__tests__/executor.test.js +16 -5
- package/dist/src/a2a/__tests__/executor.test.js.map +1 -1
- package/dist/src/a2a/a2a-agent.d.ts +8 -3
- package/dist/src/a2a/a2a-agent.d.ts.map +1 -1
- package/dist/src/a2a/a2a-agent.js +12 -6
- package/dist/src/a2a/a2a-agent.js.map +1 -1
- package/dist/src/a2a/executor.d.ts +13 -0
- package/dist/src/a2a/executor.d.ts.map +1 -1
- package/dist/src/a2a/executor.js +19 -1
- package/dist/src/a2a/executor.js.map +1 -1
- package/dist/src/agent/__tests__/agent-as-tool.invocation-state.test.d.ts +2 -0
- package/dist/src/agent/__tests__/agent-as-tool.invocation-state.test.d.ts.map +1 -0
- package/dist/src/agent/__tests__/agent-as-tool.invocation-state.test.js +23 -0
- package/dist/src/agent/__tests__/agent-as-tool.invocation-state.test.js.map +1 -0
- package/dist/src/agent/__tests__/agent.cancel.test.js +1 -1
- package/dist/src/agent/__tests__/agent.cancel.test.js.map +1 -1
- package/dist/src/agent/__tests__/agent.concurrent.test.d.ts +2 -0
- package/dist/src/agent/__tests__/agent.concurrent.test.d.ts.map +1 -0
- package/dist/src/agent/__tests__/agent.concurrent.test.js +488 -0
- package/dist/src/agent/__tests__/agent.concurrent.test.js.map +1 -0
- package/dist/src/agent/__tests__/agent.hook.test.js +174 -12
- package/dist/src/agent/__tests__/agent.hook.test.js.map +1 -1
- package/dist/src/agent/__tests__/agent.invocation-state.test.d.ts +2 -0
- package/dist/src/agent/__tests__/agent.invocation-state.test.d.ts.map +1 -0
- package/dist/src/agent/__tests__/agent.invocation-state.test.js +219 -0
- package/dist/src/agent/__tests__/agent.invocation-state.test.js.map +1 -0
- package/dist/src/agent/__tests__/agent.stateful-model.test.d.ts +2 -0
- package/dist/src/agent/__tests__/agent.stateful-model.test.d.ts.map +1 -0
- package/dist/src/agent/__tests__/agent.stateful-model.test.js +169 -0
- package/dist/src/agent/__tests__/agent.stateful-model.test.js.map +1 -0
- package/dist/src/agent/__tests__/agent.test.js +99 -2
- package/dist/src/agent/__tests__/agent.test.js.map +1 -1
- package/dist/src/agent/__tests__/agent.tracer.test.node.js +39 -0
- package/dist/src/agent/__tests__/agent.tracer.test.node.js.map +1 -1
- package/dist/src/agent/__tests__/snapshot.test.js +5 -4
- package/dist/src/agent/__tests__/snapshot.test.js.map +1 -1
- package/dist/src/agent/agent-as-tool.d.ts.map +1 -1
- package/dist/src/agent/agent-as-tool.js +4 -2
- package/dist/src/agent/agent-as-tool.js.map +1 -1
- package/dist/src/agent/agent.d.ts +75 -1
- package/dist/src/agent/agent.d.ts.map +1 -1
- package/dist/src/agent/agent.js +323 -83
- package/dist/src/agent/agent.js.map +1 -1
- package/dist/src/agent/snapshot.d.ts +2 -2
- package/dist/src/agent/snapshot.d.ts.map +1 -1
- package/dist/src/agent/snapshot.js +8 -2
- package/dist/src/agent/snapshot.js.map +1 -1
- package/dist/src/conversation-manager/__tests__/conversation-manager.test.js +4 -4
- package/dist/src/conversation-manager/__tests__/conversation-manager.test.js.map +1 -1
- package/dist/src/conversation-manager/__tests__/null-conversation-manager.test.js +2 -2
- package/dist/src/conversation-manager/__tests__/null-conversation-manager.test.js.map +1 -1
- package/dist/src/conversation-manager/__tests__/sliding-window-conversation-manager.test.js +8 -3
- package/dist/src/conversation-manager/__tests__/sliding-window-conversation-manager.test.js.map +1 -1
- package/dist/src/conversation-manager/__tests__/summarizing-conversation-manager.test.js +1 -0
- package/dist/src/conversation-manager/__tests__/summarizing-conversation-manager.test.js.map +1 -1
- package/dist/src/errors.d.ts +11 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +12 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/hooks/__tests__/events.test.js +177 -70
- package/dist/src/hooks/__tests__/events.test.js.map +1 -1
- package/dist/src/hooks/__tests__/registry.test.js +16 -16
- package/dist/src/hooks/__tests__/registry.test.js.map +1 -1
- package/dist/src/hooks/events.d.ts +95 -25
- package/dist/src/hooks/events.d.ts.map +1 -1
- package/dist/src/hooks/events.js +98 -23
- package/dist/src/hooks/events.js.map +1 -1
- package/dist/src/index.d.ts +5 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/logging/__tests__/warn-once.test.d.ts +2 -0
- package/dist/src/logging/__tests__/warn-once.test.d.ts.map +1 -0
- package/dist/src/logging/__tests__/warn-once.test.js +30 -0
- package/dist/src/logging/__tests__/warn-once.test.js.map +1 -0
- package/dist/src/logging/warn-once.d.ts +13 -0
- package/dist/src/logging/warn-once.d.ts.map +1 -0
- package/dist/src/logging/warn-once.js +18 -0
- package/dist/src/logging/warn-once.js.map +1 -0
- package/dist/src/mcp.d.ts +20 -1
- package/dist/src/mcp.d.ts.map +1 -1
- package/dist/src/mcp.js +10 -1
- package/dist/src/mcp.js.map +1 -1
- package/dist/src/mime.d.ts +2 -1
- package/dist/src/mime.d.ts.map +1 -1
- package/dist/src/mime.js +1 -0
- package/dist/src/mime.js.map +1 -1
- package/dist/src/models/__tests__/anthropic.test.js +92 -3
- package/dist/src/models/__tests__/anthropic.test.js.map +1 -1
- package/dist/src/models/__tests__/bedrock.test.js +113 -2
- package/dist/src/models/__tests__/bedrock.test.js.map +1 -1
- package/dist/src/models/__tests__/google.test.js +77 -0
- package/dist/src/models/__tests__/google.test.js.map +1 -1
- package/dist/src/models/__tests__/model.test.js +149 -1
- package/dist/src/models/__tests__/model.test.js.map +1 -1
- package/dist/src/models/anthropic.d.ts +12 -1
- package/dist/src/models/anthropic.d.ts.map +1 -1
- package/dist/src/models/anthropic.js +38 -6
- package/dist/src/models/anthropic.js.map +1 -1
- package/dist/src/models/bedrock.d.ts +12 -1
- package/dist/src/models/bedrock.d.ts.map +1 -1
- package/dist/src/models/bedrock.js +45 -11
- package/dist/src/models/bedrock.js.map +1 -1
- package/dist/src/models/defaults.d.ts +37 -0
- package/dist/src/models/defaults.d.ts.map +1 -0
- package/dist/src/models/defaults.js +41 -0
- package/dist/src/models/defaults.js.map +1 -0
- package/dist/src/models/google/model.d.ts +14 -1
- package/dist/src/models/google/model.d.ts.map +1 -1
- package/dist/src/models/google/model.js +50 -6
- package/dist/src/models/google/model.js.map +1 -1
- package/dist/src/models/model.d.ts +50 -0
- package/dist/src/models/model.d.ts.map +1 -1
- package/dist/src/models/model.js +120 -0
- package/dist/src/models/model.js.map +1 -1
- package/dist/src/models/openai/__tests__/chat.test.d.ts +2 -0
- package/dist/src/models/openai/__tests__/chat.test.d.ts.map +1 -0
- package/dist/src/models/{__tests__/openai.test.js → openai/__tests__/chat.test.js} +72 -7
- package/dist/src/models/openai/__tests__/chat.test.js.map +1 -0
- package/dist/src/models/openai/__tests__/responses.test.d.ts +2 -0
- package/dist/src/models/openai/__tests__/responses.test.d.ts.map +1 -0
- package/dist/src/models/openai/__tests__/responses.test.js +668 -0
- package/dist/src/models/openai/__tests__/responses.test.js.map +1 -0
- package/dist/src/models/openai/chat-adapter.d.ts +33 -0
- package/dist/src/models/openai/chat-adapter.d.ts.map +1 -0
- package/dist/src/models/openai/chat-adapter.js +383 -0
- package/dist/src/models/openai/chat-adapter.js.map +1 -0
- package/dist/src/models/openai/errors.d.ts +16 -0
- package/dist/src/models/openai/errors.d.ts.map +1 -0
- package/dist/src/models/openai/errors.js +40 -0
- package/dist/src/models/openai/errors.js.map +1 -0
- package/dist/src/models/openai/formatting.d.ts +18 -0
- package/dist/src/models/openai/formatting.d.ts.map +1 -0
- package/dist/src/models/openai/formatting.js +38 -0
- package/dist/src/models/openai/formatting.js.map +1 -0
- package/dist/src/models/openai/index.d.ts +19 -0
- package/dist/src/models/openai/index.d.ts.map +1 -0
- package/dist/src/models/openai/index.js +18 -0
- package/dist/src/models/openai/index.js.map +1 -0
- package/dist/src/models/openai/model.d.ts +77 -0
- package/dist/src/models/openai/model.d.ts.map +1 -0
- package/dist/src/models/openai/model.js +211 -0
- package/dist/src/models/openai/model.js.map +1 -0
- package/dist/src/models/openai/responses-adapter.d.ts +78 -0
- package/dist/src/models/openai/responses-adapter.d.ts.map +1 -0
- package/dist/src/models/openai/responses-adapter.js +467 -0
- package/dist/src/models/openai/responses-adapter.js.map +1 -0
- package/dist/src/models/openai/types.d.ts +131 -0
- package/dist/src/models/openai/types.d.ts.map +1 -0
- package/dist/src/models/openai/types.js +5 -0
- package/dist/src/models/openai/types.js.map +1 -0
- package/dist/src/multiagent/__tests__/events.test.js +122 -28
- package/dist/src/multiagent/__tests__/events.test.js.map +1 -1
- package/dist/src/multiagent/__tests__/graph.invocation-state.test.d.ts +2 -0
- package/dist/src/multiagent/__tests__/graph.invocation-state.test.d.ts.map +1 -0
- package/dist/src/multiagent/__tests__/graph.invocation-state.test.js +95 -0
- package/dist/src/multiagent/__tests__/graph.invocation-state.test.js.map +1 -0
- package/dist/src/multiagent/__tests__/nodes.test.js +5 -2
- package/dist/src/multiagent/__tests__/nodes.test.js.map +1 -1
- package/dist/src/multiagent/__tests__/swarm.invocation-state.test.d.ts +2 -0
- package/dist/src/multiagent/__tests__/swarm.invocation-state.test.d.ts.map +1 -0
- package/dist/src/multiagent/__tests__/swarm.invocation-state.test.js +56 -0
- package/dist/src/multiagent/__tests__/swarm.invocation-state.test.js.map +1 -0
- package/dist/src/multiagent/events.d.ts +19 -1
- package/dist/src/multiagent/events.d.ts.map +1 -1
- package/dist/src/multiagent/events.js +18 -0
- package/dist/src/multiagent/events.js.map +1 -1
- package/dist/src/multiagent/graph.d.ts +5 -3
- package/dist/src/multiagent/graph.d.ts.map +1 -1
- package/dist/src/multiagent/graph.js +22 -15
- package/dist/src/multiagent/graph.js.map +1 -1
- package/dist/src/multiagent/index.d.ts +1 -1
- package/dist/src/multiagent/index.d.ts.map +1 -1
- package/dist/src/multiagent/multiagent.d.ts +16 -3
- package/dist/src/multiagent/multiagent.d.ts.map +1 -1
- package/dist/src/multiagent/nodes.d.ts +10 -3
- package/dist/src/multiagent/nodes.d.ts.map +1 -1
- package/dist/src/multiagent/nodes.js +28 -6
- package/dist/src/multiagent/nodes.js.map +1 -1
- package/dist/src/multiagent/swarm.d.ts +5 -3
- package/dist/src/multiagent/swarm.d.ts.map +1 -1
- package/dist/src/multiagent/swarm.js +22 -16
- package/dist/src/multiagent/swarm.js.map +1 -1
- package/dist/src/plugins/__tests__/registry.test.js +1 -1
- package/dist/src/plugins/__tests__/registry.test.js.map +1 -1
- package/dist/src/plugins/model-plugin.d.ts +20 -0
- package/dist/src/plugins/model-plugin.d.ts.map +1 -0
- package/dist/src/plugins/model-plugin.js +29 -0
- package/dist/src/plugins/model-plugin.js.map +1 -0
- package/dist/src/session/__tests__/session-manager.test.js +13 -11
- package/dist/src/session/__tests__/session-manager.test.js.map +1 -1
- package/dist/src/session/session-manager.d.ts.map +1 -1
- package/dist/src/session/session-manager.js +9 -0
- package/dist/src/session/session-manager.js.map +1 -1
- package/dist/src/telemetry/__tests__/meter.test.js +23 -0
- package/dist/src/telemetry/__tests__/meter.test.js.map +1 -1
- package/dist/src/telemetry/meter.d.ts +15 -0
- package/dist/src/telemetry/meter.d.ts.map +1 -1
- package/dist/src/telemetry/meter.js +14 -0
- package/dist/src/telemetry/meter.js.map +1 -1
- package/dist/src/tools/mcp-tool.d.ts +24 -3
- package/dist/src/tools/mcp-tool.d.ts.map +1 -1
- package/dist/src/tools/mcp-tool.js +103 -31
- package/dist/src/tools/mcp-tool.js.map +1 -1
- package/dist/src/tools/tool.d.ts +11 -1
- package/dist/src/tools/tool.d.ts.map +1 -1
- package/dist/src/tools/tool.js.map +1 -1
- package/dist/src/tsconfig.tsbuildinfo +1 -1
- package/dist/src/types/__tests__/agent.test.js +48 -0
- package/dist/src/types/__tests__/agent.test.js.map +1 -1
- package/dist/src/types/agent.d.ts +55 -6
- package/dist/src/types/agent.d.ts.map +1 -1
- package/dist/src/types/agent.js +22 -6
- package/dist/src/types/agent.js.map +1 -1
- package/dist/src/types/elicitation.d.ts +15 -0
- package/dist/src/types/elicitation.d.ts.map +1 -0
- package/dist/src/types/elicitation.js +2 -0
- package/dist/src/types/elicitation.js.map +1 -0
- package/dist/src/vended-plugins/skills/__tests__/agent-skills.test.node.js +9 -5
- package/dist/src/vended-plugins/skills/__tests__/agent-skills.test.node.js.map +1 -1
- package/dist/src/vended-tools/bash/__tests__/bash.test.node.js +1 -0
- package/dist/src/vended-tools/bash/__tests__/bash.test.node.js.map +1 -1
- package/dist/src/vended-tools/file-editor/__tests__/file-editor.test.node.js +1 -0
- package/dist/src/vended-tools/file-editor/__tests__/file-editor.test.node.js.map +1 -1
- package/dist/src/vended-tools/notebook/__tests__/notebook.test.js +1 -0
- package/dist/src/vended-tools/notebook/__tests__/notebook.test.js.map +1 -1
- package/package.json +9 -5
- package/dist/src/models/__tests__/openai.test.d.ts +0 -2
- package/dist/src/models/__tests__/openai.test.d.ts.map +0 -1
- package/dist/src/models/__tests__/openai.test.js.map +0 -1
- package/dist/src/models/openai.d.ts +0 -312
- package/dist/src/models/openai.d.ts.map +0 -1
- package/dist/src/models/openai.js +0 -789
- package/dist/src/models/openai.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocalAgent, AgentResult } from '../types/agent.js';
|
|
1
|
+
import type { LocalAgent, AgentResult, InvocationState } from '../types/agent.js';
|
|
2
2
|
import type { ContentBlock, Message, StopReason, ToolResultBlock } from '../types/messages.js';
|
|
3
3
|
import { type Tool, ToolStreamEvent } from '../tools/tool.js';
|
|
4
4
|
import type { JSONValue } from '../types/json.js';
|
|
@@ -45,13 +45,29 @@ import type { Model } from '../models/model.js';
|
|
|
45
45
|
*
|
|
46
46
|
* ## Field naming conventions
|
|
47
47
|
*
|
|
48
|
-
* | Field
|
|
49
|
-
*
|
|
50
|
-
* | `agent`
|
|
51
|
-
* |
|
|
52
|
-
* | `.
|
|
53
|
-
* | `.
|
|
54
|
-
* | `.
|
|
48
|
+
* | Field | Usage |
|
|
49
|
+
* |--------------------|--------------------------------------------------|
|
|
50
|
+
* | `agent` | `LocalAgent` reference on all agent-loop events |
|
|
51
|
+
* | `invocationState` | Per-invocation state — see below |
|
|
52
|
+
* | `.event` | Inner event in update wrappers |
|
|
53
|
+
* | `.result` | Finished result object |
|
|
54
|
+
* | `.message` | Message object |
|
|
55
|
+
* | `.contentBlock` | Content block object |
|
|
56
|
+
*
|
|
57
|
+
* ## `invocationState` on events
|
|
58
|
+
*
|
|
59
|
+
* Every hookable event that fires **during** an invocation carries
|
|
60
|
+
* {@link InvocationState} — the per-invocation mutable bag shared across hooks
|
|
61
|
+
* and tools. This lets any callback (lifecycle, data, streaming, completion)
|
|
62
|
+
* correlate back to the caller's request context (`userId`, `traceId`, etc.)
|
|
63
|
+
* without closure workarounds.
|
|
64
|
+
*
|
|
65
|
+
* The only events without `invocationState` are the ones that fire **outside**
|
|
66
|
+
* any invocation scope: {@link InitializedEvent} and `MultiAgentInitializedEvent`,
|
|
67
|
+
* both of which fire at construction.
|
|
68
|
+
*
|
|
69
|
+
* New events should follow the same rule: carry `invocationState` unless the
|
|
70
|
+
* event fires before any invocation exists.
|
|
55
71
|
*/
|
|
56
72
|
/**
|
|
57
73
|
* Base class for all events yielded by `agent.stream()`.
|
|
@@ -96,11 +112,19 @@ export declare class InitializedEvent extends HookableEvent {
|
|
|
96
112
|
export declare class BeforeInvocationEvent extends HookableEvent {
|
|
97
113
|
readonly type: "beforeInvocationEvent";
|
|
98
114
|
readonly agent: LocalAgent;
|
|
115
|
+
readonly invocationState: InvocationState;
|
|
116
|
+
/**
|
|
117
|
+
* Set by hook callbacks to cancel this invocation.
|
|
118
|
+
* When set to `true`, a default cancel message is used.
|
|
119
|
+
* When set to a string, that string is used as the assistant response message.
|
|
120
|
+
*/
|
|
121
|
+
cancel: boolean | string;
|
|
99
122
|
constructor(data: {
|
|
100
123
|
agent: LocalAgent;
|
|
124
|
+
invocationState: InvocationState;
|
|
101
125
|
});
|
|
102
126
|
/**
|
|
103
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
127
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
104
128
|
* Called automatically by JSON.stringify().
|
|
105
129
|
*/
|
|
106
130
|
toJSON(): Pick<BeforeInvocationEvent, 'type'>;
|
|
@@ -113,12 +137,14 @@ export declare class BeforeInvocationEvent extends HookableEvent {
|
|
|
113
137
|
export declare class AfterInvocationEvent extends HookableEvent {
|
|
114
138
|
readonly type: "afterInvocationEvent";
|
|
115
139
|
readonly agent: LocalAgent;
|
|
140
|
+
readonly invocationState: InvocationState;
|
|
116
141
|
constructor(data: {
|
|
117
142
|
agent: LocalAgent;
|
|
143
|
+
invocationState: InvocationState;
|
|
118
144
|
});
|
|
119
145
|
_shouldReverseCallbacks(): boolean;
|
|
120
146
|
/**
|
|
121
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
147
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
122
148
|
* Called automatically by JSON.stringify().
|
|
123
149
|
*/
|
|
124
150
|
toJSON(): Pick<AfterInvocationEvent, 'type'>;
|
|
@@ -132,12 +158,14 @@ export declare class MessageAddedEvent extends HookableEvent {
|
|
|
132
158
|
readonly type: "messageAddedEvent";
|
|
133
159
|
readonly agent: LocalAgent;
|
|
134
160
|
readonly message: Message;
|
|
161
|
+
readonly invocationState: InvocationState;
|
|
135
162
|
constructor(data: {
|
|
136
163
|
agent: LocalAgent;
|
|
137
164
|
message: Message;
|
|
165
|
+
invocationState: InvocationState;
|
|
138
166
|
});
|
|
139
167
|
/**
|
|
140
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
168
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
141
169
|
* Called automatically by JSON.stringify().
|
|
142
170
|
*/
|
|
143
171
|
toJSON(): Pick<MessageAddedEvent, 'type' | 'message'>;
|
|
@@ -156,6 +184,7 @@ export declare class BeforeToolCallEvent extends HookableEvent {
|
|
|
156
184
|
input: JSONValue;
|
|
157
185
|
};
|
|
158
186
|
readonly tool: Tool | undefined;
|
|
187
|
+
readonly invocationState: InvocationState;
|
|
159
188
|
/**
|
|
160
189
|
* Set by hook callbacks to cancel this tool call.
|
|
161
190
|
* When set to `true`, a default cancel message is used.
|
|
@@ -170,9 +199,10 @@ export declare class BeforeToolCallEvent extends HookableEvent {
|
|
|
170
199
|
input: JSONValue;
|
|
171
200
|
};
|
|
172
201
|
tool: Tool | undefined;
|
|
202
|
+
invocationState: InvocationState;
|
|
173
203
|
});
|
|
174
204
|
/**
|
|
175
|
-
* Serializes for wire transport, excluding the agent reference, tool instance, and mutable cancel flag.
|
|
205
|
+
* Serializes for wire transport, excluding the agent reference, tool instance, invocationState, and mutable cancel flag.
|
|
176
206
|
* Called automatically by JSON.stringify().
|
|
177
207
|
*/
|
|
178
208
|
toJSON(): Pick<BeforeToolCallEvent, 'type' | 'toolUse'>;
|
|
@@ -191,8 +221,13 @@ export declare class AfterToolCallEvent extends HookableEvent {
|
|
|
191
221
|
input: JSONValue;
|
|
192
222
|
};
|
|
193
223
|
readonly tool: Tool | undefined;
|
|
194
|
-
|
|
224
|
+
/**
|
|
225
|
+
* The tool result. Can be replaced by hook callbacks to transform the result
|
|
226
|
+
* before it enters the conversation history.
|
|
227
|
+
*/
|
|
228
|
+
result: ToolResultBlock;
|
|
195
229
|
readonly error?: Error;
|
|
230
|
+
readonly invocationState: InvocationState;
|
|
196
231
|
/**
|
|
197
232
|
* Optional flag that can be set by hook callbacks to request a retry of the tool call.
|
|
198
233
|
* When set to true, the agent will re-execute the tool.
|
|
@@ -207,11 +242,12 @@ export declare class AfterToolCallEvent extends HookableEvent {
|
|
|
207
242
|
};
|
|
208
243
|
tool: Tool | undefined;
|
|
209
244
|
result: ToolResultBlock;
|
|
245
|
+
invocationState: InvocationState;
|
|
210
246
|
error?: Error;
|
|
211
247
|
});
|
|
212
248
|
_shouldReverseCallbacks(): boolean;
|
|
213
249
|
/**
|
|
214
|
-
* Serializes for wire transport, excluding the agent reference, tool instance, and mutable retry flag.
|
|
250
|
+
* Serializes for wire transport, excluding the agent reference, tool instance, invocationState, and mutable retry flag.
|
|
215
251
|
* Converts Error to an extensible object for safe wire serialization.
|
|
216
252
|
* Called automatically by JSON.stringify().
|
|
217
253
|
*/
|
|
@@ -229,15 +265,31 @@ export declare class BeforeModelCallEvent extends HookableEvent {
|
|
|
229
265
|
readonly type: "beforeModelCallEvent";
|
|
230
266
|
readonly agent: LocalAgent;
|
|
231
267
|
readonly model: Model;
|
|
268
|
+
readonly invocationState: InvocationState;
|
|
269
|
+
/**
|
|
270
|
+
* Set by hook callbacks to cancel this model call.
|
|
271
|
+
* When set to `true`, a default cancel message is used.
|
|
272
|
+
* When set to a string, that string is used as the assistant response message.
|
|
273
|
+
*/
|
|
274
|
+
cancel: boolean | string;
|
|
275
|
+
/**
|
|
276
|
+
* Projected input token count for the upcoming model call.
|
|
277
|
+
* Computed by the agent loop from message metadata and token estimation.
|
|
278
|
+
* Available for hooks and plugins (e.g. conversation managers) to make
|
|
279
|
+
* proactive decisions about context management.
|
|
280
|
+
*/
|
|
281
|
+
readonly projectedInputTokens?: number;
|
|
232
282
|
constructor(data: {
|
|
233
283
|
agent: LocalAgent;
|
|
234
284
|
model: Model;
|
|
285
|
+
invocationState: InvocationState;
|
|
286
|
+
projectedInputTokens?: number;
|
|
235
287
|
});
|
|
236
288
|
/**
|
|
237
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
289
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
238
290
|
* Called automatically by JSON.stringify().
|
|
239
291
|
*/
|
|
240
|
-
toJSON(): Pick<BeforeModelCallEvent, 'type'>;
|
|
292
|
+
toJSON(): Pick<BeforeModelCallEvent, 'type' | 'projectedInputTokens'>;
|
|
241
293
|
}
|
|
242
294
|
/**
|
|
243
295
|
* Redaction information when guardrails block content.
|
|
@@ -281,6 +333,7 @@ export declare class AfterModelCallEvent extends HookableEvent {
|
|
|
281
333
|
readonly model: Model;
|
|
282
334
|
readonly stopData?: ModelStopData;
|
|
283
335
|
readonly error?: Error;
|
|
336
|
+
readonly invocationState: InvocationState;
|
|
284
337
|
/**
|
|
285
338
|
* Optional flag that can be set by hook callbacks to request a retry of the model call.
|
|
286
339
|
* When set to true, the agent will retry the model invocation.
|
|
@@ -289,12 +342,13 @@ export declare class AfterModelCallEvent extends HookableEvent {
|
|
|
289
342
|
constructor(data: {
|
|
290
343
|
agent: LocalAgent;
|
|
291
344
|
model: Model;
|
|
345
|
+
invocationState: InvocationState;
|
|
292
346
|
stopData?: ModelStopData;
|
|
293
347
|
error?: Error;
|
|
294
348
|
});
|
|
295
349
|
_shouldReverseCallbacks(): boolean;
|
|
296
350
|
/**
|
|
297
|
-
* Serializes for wire transport, excluding the agent reference and mutable retry flag.
|
|
351
|
+
* Serializes for wire transport, excluding the agent reference, invocationState, and mutable retry flag.
|
|
298
352
|
* Converts Error to an extensible object for safe wire serialization.
|
|
299
353
|
* Called automatically by JSON.stringify().
|
|
300
354
|
*/
|
|
@@ -314,12 +368,14 @@ export declare class ModelStreamUpdateEvent extends HookableEvent {
|
|
|
314
368
|
readonly type: "modelStreamUpdateEvent";
|
|
315
369
|
readonly agent: LocalAgent;
|
|
316
370
|
readonly event: ModelStreamEvent;
|
|
371
|
+
readonly invocationState: InvocationState;
|
|
317
372
|
constructor(data: {
|
|
318
373
|
agent: LocalAgent;
|
|
319
374
|
event: ModelStreamEvent;
|
|
375
|
+
invocationState: InvocationState;
|
|
320
376
|
});
|
|
321
377
|
/**
|
|
322
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
378
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
323
379
|
* Called automatically by JSON.stringify().
|
|
324
380
|
*/
|
|
325
381
|
toJSON(): Pick<ModelStreamUpdateEvent, 'type' | 'event'>;
|
|
@@ -338,12 +394,14 @@ export declare class ContentBlockEvent extends HookableEvent {
|
|
|
338
394
|
readonly type: "contentBlockEvent";
|
|
339
395
|
readonly agent: LocalAgent;
|
|
340
396
|
readonly contentBlock: ContentBlock;
|
|
397
|
+
readonly invocationState: InvocationState;
|
|
341
398
|
constructor(data: {
|
|
342
399
|
agent: LocalAgent;
|
|
343
400
|
contentBlock: ContentBlock;
|
|
401
|
+
invocationState: InvocationState;
|
|
344
402
|
});
|
|
345
403
|
/**
|
|
346
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
404
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
347
405
|
* Called automatically by JSON.stringify().
|
|
348
406
|
*/
|
|
349
407
|
toJSON(): Pick<ContentBlockEvent, 'type' | 'contentBlock'>;
|
|
@@ -357,13 +415,15 @@ export declare class ModelMessageEvent extends HookableEvent {
|
|
|
357
415
|
readonly agent: LocalAgent;
|
|
358
416
|
readonly message: Message;
|
|
359
417
|
readonly stopReason: StopReason;
|
|
418
|
+
readonly invocationState: InvocationState;
|
|
360
419
|
constructor(data: {
|
|
361
420
|
agent: LocalAgent;
|
|
362
421
|
message: Message;
|
|
363
422
|
stopReason: StopReason;
|
|
423
|
+
invocationState: InvocationState;
|
|
364
424
|
});
|
|
365
425
|
/**
|
|
366
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
426
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
367
427
|
* Called automatically by JSON.stringify().
|
|
368
428
|
*/
|
|
369
429
|
toJSON(): Pick<ModelMessageEvent, 'type' | 'message' | 'stopReason'>;
|
|
@@ -376,12 +436,14 @@ export declare class ToolResultEvent extends HookableEvent {
|
|
|
376
436
|
readonly type: "toolResultEvent";
|
|
377
437
|
readonly agent: LocalAgent;
|
|
378
438
|
readonly result: ToolResultBlock;
|
|
439
|
+
readonly invocationState: InvocationState;
|
|
379
440
|
constructor(data: {
|
|
380
441
|
agent: LocalAgent;
|
|
381
442
|
result: ToolResultBlock;
|
|
443
|
+
invocationState: InvocationState;
|
|
382
444
|
});
|
|
383
445
|
/**
|
|
384
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
446
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
385
447
|
* Called automatically by JSON.stringify().
|
|
386
448
|
*/
|
|
387
449
|
toJSON(): Pick<ToolResultEvent, 'type' | 'result'>;
|
|
@@ -399,12 +461,14 @@ export declare class ToolStreamUpdateEvent extends HookableEvent {
|
|
|
399
461
|
readonly type: "toolStreamUpdateEvent";
|
|
400
462
|
readonly agent: LocalAgent;
|
|
401
463
|
readonly event: ToolStreamEvent;
|
|
464
|
+
readonly invocationState: InvocationState;
|
|
402
465
|
constructor(data: {
|
|
403
466
|
agent: LocalAgent;
|
|
404
467
|
event: ToolStreamEvent;
|
|
468
|
+
invocationState: InvocationState;
|
|
405
469
|
});
|
|
406
470
|
/**
|
|
407
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
471
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
408
472
|
* Called automatically by JSON.stringify().
|
|
409
473
|
*/
|
|
410
474
|
toJSON(): Pick<ToolStreamUpdateEvent, 'type' | 'event'>;
|
|
@@ -417,12 +481,14 @@ export declare class AgentResultEvent extends HookableEvent {
|
|
|
417
481
|
readonly type: "agentResultEvent";
|
|
418
482
|
readonly agent: LocalAgent;
|
|
419
483
|
readonly result: AgentResult;
|
|
484
|
+
readonly invocationState: InvocationState;
|
|
420
485
|
constructor(data: {
|
|
421
486
|
agent: LocalAgent;
|
|
422
487
|
result: AgentResult;
|
|
488
|
+
invocationState: InvocationState;
|
|
423
489
|
});
|
|
424
490
|
/**
|
|
425
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
491
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
426
492
|
* Called automatically by JSON.stringify().
|
|
427
493
|
*/
|
|
428
494
|
toJSON(): Pick<AgentResultEvent, 'type' | 'result'>;
|
|
@@ -436,6 +502,7 @@ export declare class BeforeToolsEvent extends HookableEvent {
|
|
|
436
502
|
readonly type: "beforeToolsEvent";
|
|
437
503
|
readonly agent: LocalAgent;
|
|
438
504
|
readonly message: Message;
|
|
505
|
+
readonly invocationState: InvocationState;
|
|
439
506
|
/**
|
|
440
507
|
* Set by hook callbacks to cancel all tool calls.
|
|
441
508
|
* When set to `true`, a default cancel message is used.
|
|
@@ -445,9 +512,10 @@ export declare class BeforeToolsEvent extends HookableEvent {
|
|
|
445
512
|
constructor(data: {
|
|
446
513
|
agent: LocalAgent;
|
|
447
514
|
message: Message;
|
|
515
|
+
invocationState: InvocationState;
|
|
448
516
|
});
|
|
449
517
|
/**
|
|
450
|
-
* Serializes for wire transport, excluding the agent reference and mutable cancel flag.
|
|
518
|
+
* Serializes for wire transport, excluding the agent reference, invocationState, and mutable cancel flag.
|
|
451
519
|
* Called automatically by JSON.stringify().
|
|
452
520
|
*/
|
|
453
521
|
toJSON(): Pick<BeforeToolsEvent, 'type' | 'message'>;
|
|
@@ -461,13 +529,15 @@ export declare class AfterToolsEvent extends HookableEvent {
|
|
|
461
529
|
readonly type: "afterToolsEvent";
|
|
462
530
|
readonly agent: LocalAgent;
|
|
463
531
|
readonly message: Message;
|
|
532
|
+
readonly invocationState: InvocationState;
|
|
464
533
|
constructor(data: {
|
|
465
534
|
agent: LocalAgent;
|
|
466
535
|
message: Message;
|
|
536
|
+
invocationState: InvocationState;
|
|
467
537
|
});
|
|
468
538
|
_shouldReverseCallbacks(): boolean;
|
|
469
539
|
/**
|
|
470
|
-
* Serializes for wire transport, excluding the agent reference.
|
|
540
|
+
* Serializes for wire transport, excluding the agent reference and invocationState.
|
|
471
541
|
* Called automatically by JSON.stringify().
|
|
472
542
|
*/
|
|
473
543
|
toJSON(): Pick<AfterToolsEvent, 'type' | 'message'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/hooks/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/hooks/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC9F,OAAO,EAAE,KAAK,IAAI,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAEH;;;GAGG;AACH,8BAAsB,WAAW;CAAG;AAEpC;;;;;GAKG;AACH,8BAAsB,aAAc,SAAQ,WAAW;IACrD;;;;OAIG;IACH,uBAAuB,IAA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