@spine-event-engine/proto 2.0.0-snapshot.21 → 2.0.0-snapshot.23
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/generated/proto-module.d.ts +7 -1
- package/dist/generated/proto-module.d.ts.map +1 -1
- package/dist/generated/proto-module.js +53 -17
- package/dist/generated/proto-module.js.map +1 -1
- package/dist/generated/spine/server/agent/execution_record_pb.d.ts +1781 -0
- package/dist/generated/spine/server/agent/execution_record_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/agent/execution_record_pb.js +490 -0
- package/dist/generated/spine/server/agent/execution_record_pb.js.map +1 -0
- package/dist/generated/spine/server/agent/history_record_pb.d.ts +66 -0
- package/dist/generated/spine/server/agent/history_record_pb.d.ts.map +1 -0
- package/dist/generated/spine/server/agent/history_record_pb.js +25 -0
- package/dist/generated/spine/server/agent/history_record_pb.js.map +1 -0
- package/dist/generated/spine/ts/agent/content_pb.d.ts +963 -0
- package/dist/generated/spine/ts/agent/content_pb.d.ts.map +1 -0
- package/dist/generated/spine/ts/agent/content_pb.js +258 -0
- package/dist/generated/spine/ts/agent/content_pb.js.map +1 -0
- package/dist/generated/spine/ts/agent/history_pb.d.ts +165 -0
- package/dist/generated/spine/ts/agent/history_pb.d.ts.map +1 -0
- package/dist/generated/spine/ts/agent/history_pb.js +39 -0
- package/dist/generated/spine/ts/agent/history_pb.js.map +1 -0
- package/dist/generated/spine/ts/agent/interaction_events_pb.d.ts +541 -0
- package/dist/generated/spine/ts/agent/interaction_events_pb.d.ts.map +1 -0
- package/dist/generated/spine/ts/agent/interaction_events_pb.js +76 -0
- package/dist/generated/spine/ts/agent/interaction_events_pb.js.map +1 -0
- package/dist/generated/spine/ts/agent/model_pb.d.ts +870 -0
- package/dist/generated/spine/ts/agent/model_pb.d.ts.map +1 -0
- package/dist/generated/spine/ts/agent/model_pb.js +404 -0
- package/dist/generated/spine/ts/agent/model_pb.js.map +1 -0
- package/dist/src/agent/index.d.ts +38 -0
- package/dist/src/agent/index.d.ts.map +1 -0
- package/dist/src/agent/index.js +47 -0
- package/dist/src/agent/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/.spine-proto-generation.json +1 -1
- package/generated/proto-module.ts +53 -17
- package/generated/spine/server/agent/execution_record_pb.ts +2034 -0
- package/generated/spine/server/agent/history_record_pb.ts +85 -0
- package/generated/spine/ts/agent/content_pb.ts +1103 -0
- package/generated/spine/ts/agent/history_pb.ts +194 -0
- package/generated/spine/ts/agent/interaction_events_pb.ts +639 -0
- package/generated/spine/ts/agent/model_pb.ts +1014 -0
- package/package.json +5 -1
- package/proto/spine/server/agent/execution_record.proto +849 -0
- package/proto/spine/server/agent/history_record.proto +47 -0
- package/proto/spine/ts/agent/content.proto +412 -0
- package/proto/spine/ts/agent/history.proto +99 -0
- package/proto/spine/ts/agent/interaction_events.proto +367 -0
- package/proto/spine/ts/agent/model.proto +333 -0
- package/proto/spine-sources.json +28 -4
- package/spine-proto-manifest.json +14 -2
|
@@ -0,0 +1,963 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by Spine TypeScript. Do not edit manually.
|
|
3
|
+
* Source Proto: spine/ts/agent/content.proto
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { Any } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import type { AiAttemptId, AiContentDigest, AiDiagnosticId, AiOutcome, AiProviderModelName, AiToolCallId, AiUsage, McpServerId, McpToolName } from "./model_pb.js";
|
|
9
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file spine/ts/agent/content.proto.
|
|
12
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
13
|
+
*/
|
|
14
|
+
export declare const file_spine_ts_agent_content: GenFile;
|
|
15
|
+
/**
|
|
16
|
+
* The actual prepared generation request, including a corrective request.
|
|
17
|
+
*
|
|
18
|
+
* @generated from message spine.ts.agent.GenerationRequest
|
|
19
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
20
|
+
*/
|
|
21
|
+
export type GenerationRequest = Message<"spine.ts.agent.GenerationRequest"> & {
|
|
22
|
+
/**
|
|
23
|
+
* Typed application facts supplied to this request.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: google.protobuf.Any input = 1;
|
|
26
|
+
*/
|
|
27
|
+
input?: Any | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Rendered developer instructions sent to the model.
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: string instructions = 2;
|
|
32
|
+
*/
|
|
33
|
+
instructions: string;
|
|
34
|
+
/**
|
|
35
|
+
* Canonical JSON schema supplied to the provider.
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: string output_schema_json = 3;
|
|
38
|
+
*/
|
|
39
|
+
outputSchemaJson: string;
|
|
40
|
+
/**
|
|
41
|
+
* Actual prepared conversation and advertised tool definitions as canonical JSON.
|
|
42
|
+
* Includes model-visible names mapped to configured server/tool names, without credentials.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: string prompt_json = 4;
|
|
45
|
+
*/
|
|
46
|
+
promptJson: string;
|
|
47
|
+
/**
|
|
48
|
+
* Correction target; absent on the first attempt.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: spine.ts.agent.AiAttemptId corrects = 5;
|
|
51
|
+
*/
|
|
52
|
+
corrects?: AiAttemptId | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Digest of the actual prepared request.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: spine.ts.agent.AiContentDigest digest = 6;
|
|
57
|
+
*/
|
|
58
|
+
digest?: AiContentDigest | undefined;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Describes the message spine.ts.agent.GenerationRequest.
|
|
62
|
+
* Use `create(GenerationRequestSchema)` to create a new message.
|
|
63
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
64
|
+
*/
|
|
65
|
+
export declare const GenerationRequestSchema: GenMessage<GenerationRequest>;
|
|
66
|
+
/**
|
|
67
|
+
* One model-proposed external call before tool policy and argument validation.
|
|
68
|
+
* Received content is not evidence of authorization or dispatch.
|
|
69
|
+
*
|
|
70
|
+
* @generated from message spine.ts.agent.ModelToolCall
|
|
71
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
72
|
+
*/
|
|
73
|
+
export type ModelToolCall = Message<"spine.ts.agent.ModelToolCall"> & {
|
|
74
|
+
/**
|
|
75
|
+
* Exact provider correlation ID; blank or duplicate IDs remain recorded but cannot be dispatched.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: string provider_call_id = 1;
|
|
78
|
+
*/
|
|
79
|
+
providerCallId: string;
|
|
80
|
+
/**
|
|
81
|
+
* Exact model-facing name, including unsupported or blank names.
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: string tool_name = 2;
|
|
84
|
+
*/
|
|
85
|
+
toolName: string;
|
|
86
|
+
/**
|
|
87
|
+
* Exact received argument text, including malformed JSON or empty text.
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: string arguments_json = 3;
|
|
90
|
+
*/
|
|
91
|
+
argumentsJson: string;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Describes the message spine.ts.agent.ModelToolCall.
|
|
95
|
+
* Use `create(ModelToolCallSchema)` to create a new message.
|
|
96
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
97
|
+
*/
|
|
98
|
+
export declare const ModelToolCallSchema: GenMessage<ModelToolCall>;
|
|
99
|
+
/**
|
|
100
|
+
* Exact assistant content returned by the Anthropic Messages profile.
|
|
101
|
+
*
|
|
102
|
+
* @generated from message spine.ts.agent.AnthropicAssistantContent
|
|
103
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
104
|
+
*/
|
|
105
|
+
export type AnthropicAssistantContent = Message<"spine.ts.agent.AnthropicAssistantContent"> & {
|
|
106
|
+
/**
|
|
107
|
+
* Blocks in provider order, including incomplete blocks on a failed receipt.
|
|
108
|
+
*
|
|
109
|
+
* @generated from field: repeated spine.ts.agent.AnthropicContentBlock blocks = 1;
|
|
110
|
+
*/
|
|
111
|
+
blocks: AnthropicContentBlock[];
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Describes the message spine.ts.agent.AnthropicAssistantContent.
|
|
115
|
+
* Use `create(AnthropicAssistantContentSchema)` to create a new message.
|
|
116
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
117
|
+
*/
|
|
118
|
+
export declare const AnthropicAssistantContentSchema: GenMessage<AnthropicAssistantContent>;
|
|
119
|
+
/**
|
|
120
|
+
* One typed Anthropic assistant block before any tool result is sent.
|
|
121
|
+
*
|
|
122
|
+
* @generated from message spine.ts.agent.AnthropicContentBlock
|
|
123
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
124
|
+
*/
|
|
125
|
+
export type AnthropicContentBlock = Message<"spine.ts.agent.AnthropicContentBlock"> & {
|
|
126
|
+
/**
|
|
127
|
+
* @generated from oneof spine.ts.agent.AnthropicContentBlock.content
|
|
128
|
+
*/
|
|
129
|
+
content: {
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: string text = 1;
|
|
132
|
+
*/
|
|
133
|
+
value: string;
|
|
134
|
+
case: "text";
|
|
135
|
+
} | {
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: spine.ts.agent.ModelToolCall tool_call = 2;
|
|
138
|
+
*/
|
|
139
|
+
value: ModelToolCall;
|
|
140
|
+
case: "toolCall";
|
|
141
|
+
} | {
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: spine.ts.agent.AnthropicThinking thinking = 3;
|
|
144
|
+
*/
|
|
145
|
+
value: AnthropicThinking;
|
|
146
|
+
case: "thinking";
|
|
147
|
+
} | {
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: spine.ts.agent.AnthropicRedactedThinking redacted_thinking = 4;
|
|
150
|
+
*/
|
|
151
|
+
value: AnthropicRedactedThinking;
|
|
152
|
+
case: "redactedThinking";
|
|
153
|
+
} | {
|
|
154
|
+
case: undefined;
|
|
155
|
+
value?: undefined;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Describes the message spine.ts.agent.AnthropicContentBlock.
|
|
160
|
+
* Use `create(AnthropicContentBlockSchema)` to create a new message.
|
|
161
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
162
|
+
*/
|
|
163
|
+
export declare const AnthropicContentBlockSchema: GenMessage<AnthropicContentBlock>;
|
|
164
|
+
/**
|
|
165
|
+
* Provider reasoning text and its opaque signature.
|
|
166
|
+
*
|
|
167
|
+
* @generated from message spine.ts.agent.AnthropicThinking
|
|
168
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
169
|
+
*/
|
|
170
|
+
export type AnthropicThinking = Message<"spine.ts.agent.AnthropicThinking"> & {
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: string text = 1;
|
|
173
|
+
*/
|
|
174
|
+
text: string;
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string signature = 2;
|
|
177
|
+
*/
|
|
178
|
+
signature: string;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Describes the message spine.ts.agent.AnthropicThinking.
|
|
182
|
+
* Use `create(AnthropicThinkingSchema)` to create a new message.
|
|
183
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
184
|
+
*/
|
|
185
|
+
export declare const AnthropicThinkingSchema: GenMessage<AnthropicThinking>;
|
|
186
|
+
/**
|
|
187
|
+
* Provider-encrypted reasoning retained without transformation.
|
|
188
|
+
*
|
|
189
|
+
* @generated from message spine.ts.agent.AnthropicRedactedThinking
|
|
190
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
191
|
+
*/
|
|
192
|
+
export type AnthropicRedactedThinking = Message<"spine.ts.agent.AnthropicRedactedThinking"> & {
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: string data = 1;
|
|
195
|
+
*/
|
|
196
|
+
data: string;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Describes the message spine.ts.agent.AnthropicRedactedThinking.
|
|
200
|
+
* Use `create(AnthropicRedactedThinkingSchema)` to create a new message.
|
|
201
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
202
|
+
*/
|
|
203
|
+
export declare const AnthropicRedactedThinkingSchema: GenMessage<AnthropicRedactedThinking>;
|
|
204
|
+
/**
|
|
205
|
+
* Ordered assistant items received through ChatGPT plan Responses.
|
|
206
|
+
*
|
|
207
|
+
* @generated from message spine.ts.agent.OpenAiAssistantContent
|
|
208
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
209
|
+
*/
|
|
210
|
+
export type OpenAiAssistantContent = Message<"spine.ts.agent.OpenAiAssistantContent"> & {
|
|
211
|
+
/**
|
|
212
|
+
* Provider items in output index order, including items on an interrupted receipt.
|
|
213
|
+
*
|
|
214
|
+
* @generated from field: repeated spine.ts.agent.OpenAiOutputItem items = 1;
|
|
215
|
+
*/
|
|
216
|
+
items: OpenAiOutputItem[];
|
|
217
|
+
/**
|
|
218
|
+
* True only after response.completed and coherent closure of every item.
|
|
219
|
+
*
|
|
220
|
+
* @generated from field: bool complete = 2;
|
|
221
|
+
*/
|
|
222
|
+
complete: boolean;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Describes the message spine.ts.agent.OpenAiAssistantContent.
|
|
226
|
+
* Use `create(OpenAiAssistantContentSchema)` to create a new message.
|
|
227
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
228
|
+
*/
|
|
229
|
+
export declare const OpenAiAssistantContentSchema: GenMessage<OpenAiAssistantContent>;
|
|
230
|
+
/**
|
|
231
|
+
* One Responses assistant output item with its exact provider item ID.
|
|
232
|
+
*
|
|
233
|
+
* @generated from message spine.ts.agent.OpenAiOutputItem
|
|
234
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
235
|
+
*/
|
|
236
|
+
export type OpenAiOutputItem = Message<"spine.ts.agent.OpenAiOutputItem"> & {
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: string item_id = 1;
|
|
239
|
+
*/
|
|
240
|
+
itemId: string;
|
|
241
|
+
/**
|
|
242
|
+
* @generated from oneof spine.ts.agent.OpenAiOutputItem.content
|
|
243
|
+
*/
|
|
244
|
+
content: {
|
|
245
|
+
/**
|
|
246
|
+
* @generated from field: spine.ts.agent.OpenAiMessageItem message = 2;
|
|
247
|
+
*/
|
|
248
|
+
value: OpenAiMessageItem;
|
|
249
|
+
case: "message";
|
|
250
|
+
} | {
|
|
251
|
+
/**
|
|
252
|
+
* @generated from field: spine.ts.agent.OpenAiReasoningItem reasoning = 3;
|
|
253
|
+
*/
|
|
254
|
+
value: OpenAiReasoningItem;
|
|
255
|
+
case: "reasoning";
|
|
256
|
+
} | {
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: spine.ts.agent.OpenAiFunctionCallItem function_call = 4;
|
|
259
|
+
*/
|
|
260
|
+
value: OpenAiFunctionCallItem;
|
|
261
|
+
case: "functionCall";
|
|
262
|
+
} | {
|
|
263
|
+
case: undefined;
|
|
264
|
+
value?: undefined;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Describes the message spine.ts.agent.OpenAiOutputItem.
|
|
269
|
+
* Use `create(OpenAiOutputItemSchema)` to create a new message.
|
|
270
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
271
|
+
*/
|
|
272
|
+
export declare const OpenAiOutputItemSchema: GenMessage<OpenAiOutputItem>;
|
|
273
|
+
/**
|
|
274
|
+
* Output text and refusals in provider order.
|
|
275
|
+
*
|
|
276
|
+
* @generated from message spine.ts.agent.OpenAiMessageItem
|
|
277
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
278
|
+
*/
|
|
279
|
+
export type OpenAiMessageItem = Message<"spine.ts.agent.OpenAiMessageItem"> & {
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: spine.ts.agent.OpenAiMessageItem.Phase phase = 1;
|
|
282
|
+
*/
|
|
283
|
+
phase: OpenAiMessageItem_Phase;
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: repeated spine.ts.agent.OpenAiMessagePart parts = 2;
|
|
286
|
+
*/
|
|
287
|
+
parts: OpenAiMessagePart[];
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Describes the message spine.ts.agent.OpenAiMessageItem.
|
|
291
|
+
* Use `create(OpenAiMessageItemSchema)` to create a new message.
|
|
292
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
293
|
+
*/
|
|
294
|
+
export declare const OpenAiMessageItemSchema: GenMessage<OpenAiMessageItem>;
|
|
295
|
+
/**
|
|
296
|
+
* @generated from enum spine.ts.agent.OpenAiMessageItem.Phase
|
|
297
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
298
|
+
*/
|
|
299
|
+
export declare enum OpenAiMessageItem_Phase {
|
|
300
|
+
/**
|
|
301
|
+
* @generated from enum value: PHASE_UNSPECIFIED = 0;
|
|
302
|
+
*/
|
|
303
|
+
PHASE_UNSPECIFIED = 0,
|
|
304
|
+
/**
|
|
305
|
+
* @generated from enum value: COMMENTARY = 1;
|
|
306
|
+
*/
|
|
307
|
+
COMMENTARY = 1,
|
|
308
|
+
/**
|
|
309
|
+
* @generated from enum value: FINAL_ANSWER = 2;
|
|
310
|
+
*/
|
|
311
|
+
FINAL_ANSWER = 2
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Describes the enum spine.ts.agent.OpenAiMessageItem.Phase.
|
|
315
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
316
|
+
*/
|
|
317
|
+
export declare const OpenAiMessageItem_PhaseSchema: GenEnum<OpenAiMessageItem_Phase>;
|
|
318
|
+
/**
|
|
319
|
+
* One visible or refused message part.
|
|
320
|
+
*
|
|
321
|
+
* @generated from message spine.ts.agent.OpenAiMessagePart
|
|
322
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
323
|
+
*/
|
|
324
|
+
export type OpenAiMessagePart = Message<"spine.ts.agent.OpenAiMessagePart"> & {
|
|
325
|
+
/**
|
|
326
|
+
* @generated from oneof spine.ts.agent.OpenAiMessagePart.content
|
|
327
|
+
*/
|
|
328
|
+
content: {
|
|
329
|
+
/**
|
|
330
|
+
* @generated from field: string output_text = 1;
|
|
331
|
+
*/
|
|
332
|
+
value: string;
|
|
333
|
+
case: "outputText";
|
|
334
|
+
} | {
|
|
335
|
+
/**
|
|
336
|
+
* @generated from field: string refusal = 2;
|
|
337
|
+
*/
|
|
338
|
+
value: string;
|
|
339
|
+
case: "refusal";
|
|
340
|
+
} | {
|
|
341
|
+
case: undefined;
|
|
342
|
+
value?: undefined;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* Describes the message spine.ts.agent.OpenAiMessagePart.
|
|
347
|
+
* Use `create(OpenAiMessagePartSchema)` to create a new message.
|
|
348
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
349
|
+
*/
|
|
350
|
+
export declare const OpenAiMessagePartSchema: GenMessage<OpenAiMessagePart>;
|
|
351
|
+
/**
|
|
352
|
+
* Reasoning summaries and encrypted continuation state.
|
|
353
|
+
*
|
|
354
|
+
* @generated from message spine.ts.agent.OpenAiReasoningItem
|
|
355
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
356
|
+
*/
|
|
357
|
+
export type OpenAiReasoningItem = Message<"spine.ts.agent.OpenAiReasoningItem"> & {
|
|
358
|
+
/**
|
|
359
|
+
* @generated from field: repeated string summary = 1;
|
|
360
|
+
*/
|
|
361
|
+
summary: string[];
|
|
362
|
+
/**
|
|
363
|
+
* @generated from field: string encrypted_content = 2;
|
|
364
|
+
*/
|
|
365
|
+
encryptedContent: string;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Describes the message spine.ts.agent.OpenAiReasoningItem.
|
|
369
|
+
* Use `create(OpenAiReasoningItemSchema)` to create a new message.
|
|
370
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
371
|
+
*/
|
|
372
|
+
export declare const OpenAiReasoningItemSchema: GenMessage<OpenAiReasoningItem>;
|
|
373
|
+
/**
|
|
374
|
+
* Namespaced local function proposal.
|
|
375
|
+
*
|
|
376
|
+
* @generated from message spine.ts.agent.OpenAiFunctionCallItem
|
|
377
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
378
|
+
*/
|
|
379
|
+
export type OpenAiFunctionCallItem = Message<"spine.ts.agent.OpenAiFunctionCallItem"> & {
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: spine.ts.agent.ModelToolCall call = 1;
|
|
382
|
+
*/
|
|
383
|
+
call?: ModelToolCall | undefined;
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: string namespace = 2;
|
|
386
|
+
*/
|
|
387
|
+
namespace: string;
|
|
388
|
+
};
|
|
389
|
+
/**
|
|
390
|
+
* Describes the message spine.ts.agent.OpenAiFunctionCallItem.
|
|
391
|
+
* Use `create(OpenAiFunctionCallItemSchema)` to create a new message.
|
|
392
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
393
|
+
*/
|
|
394
|
+
export declare const OpenAiFunctionCallItemSchema: GenMessage<OpenAiFunctionCallItem>;
|
|
395
|
+
/**
|
|
396
|
+
* Provider generation content, admitted or rejected after local validation.
|
|
397
|
+
*
|
|
398
|
+
* @generated from message spine.ts.agent.GenerationResponse
|
|
399
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
400
|
+
*/
|
|
401
|
+
export type GenerationResponse = Message<"spine.ts.agent.GenerationResponse"> & {
|
|
402
|
+
/**
|
|
403
|
+
* Exact received assistant text, including text accompanying tool proposals.
|
|
404
|
+
*
|
|
405
|
+
* @generated from field: string raw_output = 1;
|
|
406
|
+
*/
|
|
407
|
+
rawOutput: string;
|
|
408
|
+
/**
|
|
409
|
+
* Outcome after provider and local validation; TOOL_REQUESTED is nonterminal.
|
|
410
|
+
*
|
|
411
|
+
* @generated from field: spine.ts.agent.AiOutcome outcome = 2;
|
|
412
|
+
*/
|
|
413
|
+
outcome: AiOutcome;
|
|
414
|
+
/**
|
|
415
|
+
* Typed admitted result; absent when any tool proposal remains outstanding.
|
|
416
|
+
*
|
|
417
|
+
* @generated from field: google.protobuf.Any admitted_output = 3;
|
|
418
|
+
*/
|
|
419
|
+
admittedOutput?: Any | undefined;
|
|
420
|
+
/**
|
|
421
|
+
* Provider token counts when known.
|
|
422
|
+
*
|
|
423
|
+
* @generated from field: spine.ts.agent.AiUsage usage = 4;
|
|
424
|
+
*/
|
|
425
|
+
usage?: AiUsage | undefined;
|
|
426
|
+
/**
|
|
427
|
+
* Digest of the received content when available.
|
|
428
|
+
*
|
|
429
|
+
* @generated from field: spine.ts.agent.AiContentDigest digest = 5;
|
|
430
|
+
*/
|
|
431
|
+
digest?: AiContentDigest | undefined;
|
|
432
|
+
/**
|
|
433
|
+
* Safe diagnostic reference, never a raw provider exception.
|
|
434
|
+
*
|
|
435
|
+
* @generated from field: spine.ts.agent.AiDiagnosticId diagnostic_id = 6;
|
|
436
|
+
*/
|
|
437
|
+
diagnosticId?: AiDiagnosticId | undefined;
|
|
438
|
+
/**
|
|
439
|
+
* Concrete provider model identity when the provider reports it.
|
|
440
|
+
*
|
|
441
|
+
* @generated from field: spine.ts.agent.AiProviderModelName actual_model = 7;
|
|
442
|
+
*/
|
|
443
|
+
actualModel?: AiProviderModelName | undefined;
|
|
444
|
+
/**
|
|
445
|
+
* Received model proposals in order, including malformed or denied proposals.
|
|
446
|
+
* Presence does not imply authorization or execution.
|
|
447
|
+
*
|
|
448
|
+
* @generated from field: repeated spine.ts.agent.ModelToolCall tool_calls = 8;
|
|
449
|
+
*/
|
|
450
|
+
toolCalls: ModelToolCall[];
|
|
451
|
+
/**
|
|
452
|
+
* Ordered Anthropic assistant content, present for Anthropic Messages receipts.
|
|
453
|
+
*
|
|
454
|
+
* @generated from field: spine.ts.agent.AnthropicAssistantContent anthropic_content = 9;
|
|
455
|
+
*/
|
|
456
|
+
anthropicContent?: AnthropicAssistantContent | undefined;
|
|
457
|
+
/**
|
|
458
|
+
* Ordered ChatGPT plan response items, present only for that profile.
|
|
459
|
+
*
|
|
460
|
+
* @generated from field: spine.ts.agent.OpenAiAssistantContent openai_content = 10;
|
|
461
|
+
*/
|
|
462
|
+
openaiContent?: OpenAiAssistantContent | undefined;
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* Describes the message spine.ts.agent.GenerationResponse.
|
|
466
|
+
* Use `create(GenerationResponseSchema)` to create a new message.
|
|
467
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
468
|
+
*/
|
|
469
|
+
export declare const GenerationResponseSchema: GenMessage<GenerationResponse>;
|
|
470
|
+
/**
|
|
471
|
+
* Application-assigned identity of one non-generative question.
|
|
472
|
+
*
|
|
473
|
+
* @generated from message spine.ts.agent.DecisionQuestionId
|
|
474
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
475
|
+
*/
|
|
476
|
+
export type DecisionQuestionId = Message<"spine.ts.agent.DecisionQuestionId"> & {
|
|
477
|
+
/**
|
|
478
|
+
* @generated from field: string value = 1;
|
|
479
|
+
*/
|
|
480
|
+
value: string;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Describes the message spine.ts.agent.DecisionQuestionId.
|
|
484
|
+
* Use `create(DecisionQuestionIdSchema)` to create a new message.
|
|
485
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
486
|
+
*/
|
|
487
|
+
export declare const DecisionQuestionIdSchema: GenMessage<DecisionQuestionId>;
|
|
488
|
+
/**
|
|
489
|
+
* Choice key or zero-based rubric-level index in a decision distribution.
|
|
490
|
+
*
|
|
491
|
+
* @generated from message spine.ts.agent.DecisionAlternativeKey
|
|
492
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
493
|
+
*/
|
|
494
|
+
export type DecisionAlternativeKey = Message<"spine.ts.agent.DecisionAlternativeKey"> & {
|
|
495
|
+
/**
|
|
496
|
+
* @generated from field: string value = 1;
|
|
497
|
+
*/
|
|
498
|
+
value: string;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Describes the message spine.ts.agent.DecisionAlternativeKey.
|
|
502
|
+
* Use `create(DecisionAlternativeKeySchema)` to create a new message.
|
|
503
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
504
|
+
*/
|
|
505
|
+
export declare const DecisionAlternativeKeySchema: GenMessage<DecisionAlternativeKey>;
|
|
506
|
+
/**
|
|
507
|
+
* One named alternative in a choice question.
|
|
508
|
+
*
|
|
509
|
+
* @generated from message spine.ts.agent.DecisionChoice
|
|
510
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
511
|
+
*/
|
|
512
|
+
export type DecisionChoice = Message<"spine.ts.agent.DecisionChoice"> & {
|
|
513
|
+
/**
|
|
514
|
+
* Application-defined choice key.
|
|
515
|
+
*
|
|
516
|
+
* @generated from field: spine.ts.agent.DecisionAlternativeKey key = 1;
|
|
517
|
+
*/
|
|
518
|
+
key?: DecisionAlternativeKey | undefined;
|
|
519
|
+
/**
|
|
520
|
+
* Meaning of the alternative.
|
|
521
|
+
*
|
|
522
|
+
* @generated from field: string description = 2;
|
|
523
|
+
*/
|
|
524
|
+
description: string;
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* Describes the message spine.ts.agent.DecisionChoice.
|
|
528
|
+
* Use `create(DecisionChoiceSchema)` to create a new message.
|
|
529
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
530
|
+
*/
|
|
531
|
+
export declare const DecisionChoiceSchema: GenMessage<DecisionChoice>;
|
|
532
|
+
/**
|
|
533
|
+
* One typed question sent to a decision backend.
|
|
534
|
+
*
|
|
535
|
+
* @generated from message spine.ts.agent.DecisionQuestion
|
|
536
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
537
|
+
*/
|
|
538
|
+
export type DecisionQuestion = Message<"spine.ts.agent.DecisionQuestion"> & {
|
|
539
|
+
/**
|
|
540
|
+
* Application-defined question identity.
|
|
541
|
+
*
|
|
542
|
+
* @generated from field: spine.ts.agent.DecisionQuestionId id = 1;
|
|
543
|
+
*/
|
|
544
|
+
id?: DecisionQuestionId | undefined;
|
|
545
|
+
/**
|
|
546
|
+
* Decision contract for the answer.
|
|
547
|
+
*
|
|
548
|
+
* @generated from field: spine.ts.agent.DecisionQuestionKind kind = 2;
|
|
549
|
+
*/
|
|
550
|
+
kind: DecisionQuestionKind;
|
|
551
|
+
/**
|
|
552
|
+
* Proposition or assessment instructions.
|
|
553
|
+
*
|
|
554
|
+
* @generated from field: string instructions = 3;
|
|
555
|
+
*/
|
|
556
|
+
instructions: string;
|
|
557
|
+
/**
|
|
558
|
+
* Permitted choices for a choice question.
|
|
559
|
+
*
|
|
560
|
+
* @generated from field: repeated spine.ts.agent.DecisionChoice choices = 4;
|
|
561
|
+
*/
|
|
562
|
+
choices: DecisionChoice[];
|
|
563
|
+
/**
|
|
564
|
+
* Ordered rubric levels for a score question.
|
|
565
|
+
*
|
|
566
|
+
* @generated from field: repeated string rubric = 5;
|
|
567
|
+
*/
|
|
568
|
+
rubric: string[];
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Describes the message spine.ts.agent.DecisionQuestion.
|
|
572
|
+
* Use `create(DecisionQuestionSchema)` to create a new message.
|
|
573
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
574
|
+
*/
|
|
575
|
+
export declare const DecisionQuestionSchema: GenMessage<DecisionQuestion>;
|
|
576
|
+
/**
|
|
577
|
+
* Actual non-generative decision request.
|
|
578
|
+
*
|
|
579
|
+
* @generated from message spine.ts.agent.DecisionRequest
|
|
580
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
581
|
+
*/
|
|
582
|
+
export type DecisionRequest = Message<"spine.ts.agent.DecisionRequest"> & {
|
|
583
|
+
/**
|
|
584
|
+
* Typed facts supplied by the application.
|
|
585
|
+
*
|
|
586
|
+
* @generated from field: google.protobuf.Any input = 1;
|
|
587
|
+
*/
|
|
588
|
+
input?: Any | undefined;
|
|
589
|
+
/**
|
|
590
|
+
* Exact questions sent to the backend.
|
|
591
|
+
*
|
|
592
|
+
* @generated from field: repeated spine.ts.agent.DecisionQuestion questions = 2;
|
|
593
|
+
*/
|
|
594
|
+
questions: DecisionQuestion[];
|
|
595
|
+
/**
|
|
596
|
+
* Digest of the materialized request.
|
|
597
|
+
*
|
|
598
|
+
* @generated from field: spine.ts.agent.AiContentDigest digest = 3;
|
|
599
|
+
*/
|
|
600
|
+
digest?: AiContentDigest | undefined;
|
|
601
|
+
};
|
|
602
|
+
/**
|
|
603
|
+
* Describes the message spine.ts.agent.DecisionRequest.
|
|
604
|
+
* Use `create(DecisionRequestSchema)` to create a new message.
|
|
605
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
606
|
+
*/
|
|
607
|
+
export declare const DecisionRequestSchema: GenMessage<DecisionRequest>;
|
|
608
|
+
/**
|
|
609
|
+
* One reported probability in a choice or score distribution.
|
|
610
|
+
*
|
|
611
|
+
* @generated from message spine.ts.agent.DecisionProbability
|
|
612
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
613
|
+
*/
|
|
614
|
+
export type DecisionProbability = Message<"spine.ts.agent.DecisionProbability"> & {
|
|
615
|
+
/**
|
|
616
|
+
* Choice key or decimal rubric-level index.
|
|
617
|
+
*
|
|
618
|
+
* @generated from field: spine.ts.agent.DecisionAlternativeKey key = 1;
|
|
619
|
+
*/
|
|
620
|
+
key?: DecisionAlternativeKey | undefined;
|
|
621
|
+
/**
|
|
622
|
+
* Finite inclusive zero-to-one probability, checked by the facade.
|
|
623
|
+
*
|
|
624
|
+
* @generated from field: double probability = 2;
|
|
625
|
+
*/
|
|
626
|
+
probability: number;
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
* Describes the message spine.ts.agent.DecisionProbability.
|
|
630
|
+
* Use `create(DecisionProbabilitySchema)` to create a new message.
|
|
631
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
632
|
+
*/
|
|
633
|
+
export declare const DecisionProbabilitySchema: GenMessage<DecisionProbability>;
|
|
634
|
+
/**
|
|
635
|
+
* Provider answer to one declared decision question.
|
|
636
|
+
*
|
|
637
|
+
* @generated from message spine.ts.agent.DecisionAnswer
|
|
638
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
639
|
+
*/
|
|
640
|
+
export type DecisionAnswer = Message<"spine.ts.agent.DecisionAnswer"> & {
|
|
641
|
+
/**
|
|
642
|
+
* Application-defined question identity.
|
|
643
|
+
*
|
|
644
|
+
* @generated from field: spine.ts.agent.DecisionQuestionId id = 1;
|
|
645
|
+
*/
|
|
646
|
+
id?: DecisionQuestionId | undefined;
|
|
647
|
+
/**
|
|
648
|
+
* Declared question and answer kind.
|
|
649
|
+
*
|
|
650
|
+
* @generated from field: spine.ts.agent.DecisionQuestionKind kind = 2;
|
|
651
|
+
*/
|
|
652
|
+
kind: DecisionQuestionKind;
|
|
653
|
+
/**
|
|
654
|
+
* Exactly one value consistent with the declared question kind.
|
|
655
|
+
*
|
|
656
|
+
* @generated from oneof spine.ts.agent.DecisionAnswer.value
|
|
657
|
+
*/
|
|
658
|
+
value: {
|
|
659
|
+
/**
|
|
660
|
+
* Probability of true for a boolean answer, including zero.
|
|
661
|
+
*
|
|
662
|
+
* @generated from field: double boolean_probability = 3;
|
|
663
|
+
*/
|
|
664
|
+
value: number;
|
|
665
|
+
case: "booleanProbability";
|
|
666
|
+
} | {
|
|
667
|
+
/**
|
|
668
|
+
* Selected key for a choice answer.
|
|
669
|
+
*
|
|
670
|
+
* @generated from field: spine.ts.agent.DecisionAlternativeKey choice = 4;
|
|
671
|
+
*/
|
|
672
|
+
value: DecisionAlternativeKey;
|
|
673
|
+
case: "choice";
|
|
674
|
+
} | {
|
|
675
|
+
/**
|
|
676
|
+
* Fractional score for a score answer, including zero.
|
|
677
|
+
*
|
|
678
|
+
* @generated from field: double score = 5;
|
|
679
|
+
*/
|
|
680
|
+
value: number;
|
|
681
|
+
case: "score";
|
|
682
|
+
} | {
|
|
683
|
+
case: undefined;
|
|
684
|
+
value?: undefined;
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
* Full reported distribution when available; absent means unknown.
|
|
688
|
+
*
|
|
689
|
+
* @generated from field: spine.ts.agent.DecisionDistribution distribution = 6;
|
|
690
|
+
*/
|
|
691
|
+
distribution?: DecisionDistribution | undefined;
|
|
692
|
+
/**
|
|
693
|
+
* Provider confidence when separately reported; absent means unknown.
|
|
694
|
+
*
|
|
695
|
+
* @generated from field: google.protobuf.DoubleValue confidence = 7;
|
|
696
|
+
*/
|
|
697
|
+
confidence?: number | undefined;
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* Describes the message spine.ts.agent.DecisionAnswer.
|
|
701
|
+
* Use `create(DecisionAnswerSchema)` to create a new message.
|
|
702
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
703
|
+
*/
|
|
704
|
+
export declare const DecisionAnswerSchema: GenMessage<DecisionAnswer>;
|
|
705
|
+
/**
|
|
706
|
+
* Present distribution over declared choice keys or rubric levels.
|
|
707
|
+
*
|
|
708
|
+
* @generated from message spine.ts.agent.DecisionDistribution
|
|
709
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
710
|
+
*/
|
|
711
|
+
export type DecisionDistribution = Message<"spine.ts.agent.DecisionDistribution"> & {
|
|
712
|
+
/**
|
|
713
|
+
* One entry for each declared alternative.
|
|
714
|
+
*
|
|
715
|
+
* @generated from field: repeated spine.ts.agent.DecisionProbability probabilities = 1;
|
|
716
|
+
*/
|
|
717
|
+
probabilities: DecisionProbability[];
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* Describes the message spine.ts.agent.DecisionDistribution.
|
|
721
|
+
* Use `create(DecisionDistributionSchema)` to create a new message.
|
|
722
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
723
|
+
*/
|
|
724
|
+
export declare const DecisionDistributionSchema: GenMessage<DecisionDistribution>;
|
|
725
|
+
/**
|
|
726
|
+
* Provider-declared decimal precision used to assess decision answers.
|
|
727
|
+
*
|
|
728
|
+
* @generated from message spine.ts.agent.DecisionRounding
|
|
729
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
730
|
+
*/
|
|
731
|
+
export type DecisionRounding = Message<"spine.ts.agent.DecisionRounding"> & {
|
|
732
|
+
/**
|
|
733
|
+
* Decimal places for reported probabilities; absent means unspecified.
|
|
734
|
+
*
|
|
735
|
+
* @generated from field: google.protobuf.UInt32Value probability_decimals = 1;
|
|
736
|
+
*/
|
|
737
|
+
probabilityDecimals?: number | undefined;
|
|
738
|
+
/**
|
|
739
|
+
* Decimal places for reported scores; absent means unspecified.
|
|
740
|
+
*
|
|
741
|
+
* @generated from field: google.protobuf.UInt32Value score_decimals = 2;
|
|
742
|
+
*/
|
|
743
|
+
scoreDecimals?: number | undefined;
|
|
744
|
+
};
|
|
745
|
+
/**
|
|
746
|
+
* Describes the message spine.ts.agent.DecisionRounding.
|
|
747
|
+
* Use `create(DecisionRoundingSchema)` to create a new message.
|
|
748
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
749
|
+
*/
|
|
750
|
+
export declare const DecisionRoundingSchema: GenMessage<DecisionRounding>;
|
|
751
|
+
/**
|
|
752
|
+
* Provider decision content and validation outcome.
|
|
753
|
+
*
|
|
754
|
+
* @generated from message spine.ts.agent.DecisionResponse
|
|
755
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
756
|
+
*/
|
|
757
|
+
export type DecisionResponse = Message<"spine.ts.agent.DecisionResponse"> & {
|
|
758
|
+
/**
|
|
759
|
+
* Answers received from the backend, including invalid answers.
|
|
760
|
+
*
|
|
761
|
+
* @generated from field: repeated spine.ts.agent.DecisionAnswer answers = 1;
|
|
762
|
+
*/
|
|
763
|
+
answers: DecisionAnswer[];
|
|
764
|
+
/**
|
|
765
|
+
* Outcome after local answer and mapped Proto validation; TOOL_REQUESTED is invalid here.
|
|
766
|
+
*
|
|
767
|
+
* @generated from field: spine.ts.agent.AiOutcome outcome = 2;
|
|
768
|
+
*/
|
|
769
|
+
outcome: AiOutcome;
|
|
770
|
+
/**
|
|
771
|
+
* Typed admitted mapped result when validation succeeds.
|
|
772
|
+
*
|
|
773
|
+
* @generated from field: google.protobuf.Any admitted_output = 3;
|
|
774
|
+
*/
|
|
775
|
+
admittedOutput?: Any | undefined;
|
|
776
|
+
/**
|
|
777
|
+
* Provider token usage if supplied by the decision backend.
|
|
778
|
+
*
|
|
779
|
+
* @generated from field: spine.ts.agent.AiUsage usage = 4;
|
|
780
|
+
*/
|
|
781
|
+
usage?: AiUsage | undefined;
|
|
782
|
+
/**
|
|
783
|
+
* Safe diagnostic reference for a failed outcome.
|
|
784
|
+
*
|
|
785
|
+
* @generated from field: spine.ts.agent.AiDiagnosticId diagnostic_id = 5;
|
|
786
|
+
*/
|
|
787
|
+
diagnosticId?: AiDiagnosticId | undefined;
|
|
788
|
+
/**
|
|
789
|
+
* Provider-declared precision applied during answer admission.
|
|
790
|
+
*
|
|
791
|
+
* @generated from field: spine.ts.agent.DecisionRounding rounding = 6;
|
|
792
|
+
*/
|
|
793
|
+
rounding?: DecisionRounding | undefined;
|
|
794
|
+
};
|
|
795
|
+
/**
|
|
796
|
+
* Describes the message spine.ts.agent.DecisionResponse.
|
|
797
|
+
* Use `create(DecisionResponseSchema)` to create a new message.
|
|
798
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
799
|
+
*/
|
|
800
|
+
export declare const DecisionResponseSchema: GenMessage<DecisionResponse>;
|
|
801
|
+
/**
|
|
802
|
+
* Actual authorized external tool request.
|
|
803
|
+
*
|
|
804
|
+
* @generated from message spine.ts.agent.ToolRequest
|
|
805
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
806
|
+
*/
|
|
807
|
+
export type ToolRequest = Message<"spine.ts.agent.ToolRequest"> & {
|
|
808
|
+
/**
|
|
809
|
+
* Logical call identity preserved across recovery.
|
|
810
|
+
*
|
|
811
|
+
* @generated from field: spine.ts.agent.AiToolCallId call = 1;
|
|
812
|
+
*/
|
|
813
|
+
call?: AiToolCallId | undefined;
|
|
814
|
+
/**
|
|
815
|
+
* Configured MCP server identifier.
|
|
816
|
+
*
|
|
817
|
+
* @generated from field: spine.ts.agent.McpServerId server = 2;
|
|
818
|
+
*/
|
|
819
|
+
server?: McpServerId | undefined;
|
|
820
|
+
/**
|
|
821
|
+
* Exact configured tool name.
|
|
822
|
+
*
|
|
823
|
+
* @generated from field: spine.ts.agent.McpToolName tool = 3;
|
|
824
|
+
*/
|
|
825
|
+
tool?: McpToolName | undefined;
|
|
826
|
+
/**
|
|
827
|
+
* Validated canonical JSON arguments, without credentials.
|
|
828
|
+
*
|
|
829
|
+
* @generated from field: string arguments_json = 4;
|
|
830
|
+
*/
|
|
831
|
+
argumentsJson: string;
|
|
832
|
+
/**
|
|
833
|
+
* Application-established read or write effect.
|
|
834
|
+
*
|
|
835
|
+
* @generated from field: spine.ts.agent.ToolEffect effect = 5;
|
|
836
|
+
*/
|
|
837
|
+
effect: ToolEffect;
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* Describes the message spine.ts.agent.ToolRequest.
|
|
841
|
+
* Use `create(ToolRequestSchema)` to create a new message.
|
|
842
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
843
|
+
*/
|
|
844
|
+
export declare const ToolRequestSchema: GenMessage<ToolRequest>;
|
|
845
|
+
/**
|
|
846
|
+
* External tool response or unresolved write outcome.
|
|
847
|
+
*
|
|
848
|
+
* @generated from message spine.ts.agent.ToolResponse
|
|
849
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
850
|
+
*/
|
|
851
|
+
export type ToolResponse = Message<"spine.ts.agent.ToolResponse"> & {
|
|
852
|
+
/**
|
|
853
|
+
* Logical call associated with this response.
|
|
854
|
+
*
|
|
855
|
+
* @generated from field: spine.ts.agent.AiToolCallId call = 1;
|
|
856
|
+
*/
|
|
857
|
+
call?: AiToolCallId | undefined;
|
|
858
|
+
/**
|
|
859
|
+
* Tool or transport outcome; TOOL_REQUESTED is invalid here.
|
|
860
|
+
*
|
|
861
|
+
* @generated from field: spine.ts.agent.AiOutcome outcome = 2;
|
|
862
|
+
*/
|
|
863
|
+
outcome: AiOutcome;
|
|
864
|
+
/**
|
|
865
|
+
* Supported text returned by the tool, when available.
|
|
866
|
+
*
|
|
867
|
+
* @generated from field: repeated string text = 3;
|
|
868
|
+
*/
|
|
869
|
+
text: string[];
|
|
870
|
+
/**
|
|
871
|
+
* Canonical structured JSON returned by the tool, when available.
|
|
872
|
+
*
|
|
873
|
+
* @generated from field: string structured_json = 4;
|
|
874
|
+
*/
|
|
875
|
+
structuredJson: string;
|
|
876
|
+
/**
|
|
877
|
+
* Whether MCP reported a tool execution error.
|
|
878
|
+
*
|
|
879
|
+
* @generated from field: bool tool_error = 5;
|
|
880
|
+
*/
|
|
881
|
+
toolError: boolean;
|
|
882
|
+
/**
|
|
883
|
+
* Safe diagnostic reference; never an HTTP body with credentials.
|
|
884
|
+
*
|
|
885
|
+
* @generated from field: spine.ts.agent.AiDiagnosticId diagnostic_id = 6;
|
|
886
|
+
*/
|
|
887
|
+
diagnosticId?: AiDiagnosticId | undefined;
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* Describes the message spine.ts.agent.ToolResponse.
|
|
891
|
+
* Use `create(ToolResponseSchema)` to create a new message.
|
|
892
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
893
|
+
*/
|
|
894
|
+
export declare const ToolResponseSchema: GenMessage<ToolResponse>;
|
|
895
|
+
/**
|
|
896
|
+
* Kind of one non-generative decision question.
|
|
897
|
+
*
|
|
898
|
+
* @generated from enum spine.ts.agent.DecisionQuestionKind
|
|
899
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
900
|
+
*/
|
|
901
|
+
export declare enum DecisionQuestionKind {
|
|
902
|
+
/**
|
|
903
|
+
* Unknown questions are invalid.
|
|
904
|
+
*
|
|
905
|
+
* @generated from enum value: DECISION_QUESTION_KIND_UNSPECIFIED = 0;
|
|
906
|
+
*/
|
|
907
|
+
DECISION_QUESTION_KIND_UNSPECIFIED = 0,
|
|
908
|
+
/**
|
|
909
|
+
* Probability that a proposition is true.
|
|
910
|
+
*
|
|
911
|
+
* @generated from enum value: BOOLEAN = 1;
|
|
912
|
+
*/
|
|
913
|
+
BOOLEAN = 1,
|
|
914
|
+
/**
|
|
915
|
+
* One selection from named alternatives.
|
|
916
|
+
*
|
|
917
|
+
* @generated from enum value: CHOICE = 2;
|
|
918
|
+
*/
|
|
919
|
+
CHOICE = 2,
|
|
920
|
+
/**
|
|
921
|
+
* Fractional score against an ordered rubric.
|
|
922
|
+
*
|
|
923
|
+
* @generated from enum value: SCORE = 3;
|
|
924
|
+
*/
|
|
925
|
+
SCORE = 3
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Describes the enum spine.ts.agent.DecisionQuestionKind.
|
|
929
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
930
|
+
*/
|
|
931
|
+
export declare const DecisionQuestionKindSchema: GenEnum<DecisionQuestionKind>;
|
|
932
|
+
/**
|
|
933
|
+
* Effect category established by application policy, not remote annotations.
|
|
934
|
+
*
|
|
935
|
+
* @generated from enum spine.ts.agent.ToolEffect
|
|
936
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
937
|
+
*/
|
|
938
|
+
export declare enum ToolEffect {
|
|
939
|
+
/**
|
|
940
|
+
* Unknown effects cannot be dispatched.
|
|
941
|
+
*
|
|
942
|
+
* @generated from enum value: TOOL_EFFECT_UNSPECIFIED = 0;
|
|
943
|
+
*/
|
|
944
|
+
TOOL_EFFECT_UNSPECIFIED = 0,
|
|
945
|
+
/**
|
|
946
|
+
* Tool call does not mutate remote business state.
|
|
947
|
+
*
|
|
948
|
+
* @generated from enum value: READ = 1;
|
|
949
|
+
*/
|
|
950
|
+
READ = 1,
|
|
951
|
+
/**
|
|
952
|
+
* Tool call may mutate remote business state.
|
|
953
|
+
*
|
|
954
|
+
* @generated from enum value: WRITE = 2;
|
|
955
|
+
*/
|
|
956
|
+
WRITE = 2
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* Describes the enum spine.ts.agent.ToolEffect.
|
|
960
|
+
* Generated from Proto: spine/ts/agent/content.proto.
|
|
961
|
+
*/
|
|
962
|
+
export declare const ToolEffectSchema: GenEnum<ToolEffect>;
|
|
963
|
+
//# sourceMappingURL=content_pb.d.ts.map
|