veryfront 0.1.668 → 0.1.670
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/esm/deno.js +1 -1
- package/esm/src/agent/hosted/chat-request.d.ts +2 -74
- package/esm/src/agent/hosted/chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-request.js +9 -2
- package/esm/src/agent/runtime/message-adapter.js +2 -2
- package/esm/src/chat/conversation.d.ts +11 -0
- package/esm/src/chat/conversation.d.ts.map +1 -1
- package/esm/src/chat/conversation.js +24 -3
- package/esm/src/chat/message-prep.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +29 -23
- package/esm/src/integrations/_data.d.ts.map +1 -1
- package/esm/src/integrations/_data.js +271 -0
- package/esm/src/integrations/_tool_summaries.d.ts.map +1 -1
- package/esm/src/integrations/_tool_summaries.js +83 -0
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
package/esm/deno.js
CHANGED
|
@@ -102,43 +102,7 @@ export declare const getHostedChatRequestSchema: () => import("../../internal-ag
|
|
|
102
102
|
type: import("../../internal-agents/schema.js").Schema<`data-${string}`>;
|
|
103
103
|
data: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
104
104
|
}>)[]>;
|
|
105
|
-
metadata: import("../../internal-agents/schema.js").Schema<
|
|
106
|
-
createdAt: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
107
|
-
isStopped: import("../../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
108
|
-
isCompleted: import("../../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
109
|
-
completedAt: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
110
|
-
agentId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
111
|
-
agentName: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
112
|
-
conversationId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
113
|
-
modelId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
114
|
-
runId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
115
|
-
streamingMessageId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
116
|
-
childRunAudit: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
117
|
-
status: import("../../internal-agents/schema.js").Schema<string>;
|
|
118
|
-
description: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
119
|
-
steps: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
120
|
-
durationMs: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
121
|
-
toolCalls: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
122
|
-
toolName: import("../../internal-agents/schema.js").Schema<string>;
|
|
123
|
-
toolCallId: import("../../internal-agents/schema.js").Schema<string>;
|
|
124
|
-
input: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
125
|
-
}>[] | undefined>;
|
|
126
|
-
toolResults: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
127
|
-
toolName: import("../../internal-agents/schema.js").Schema<string>;
|
|
128
|
-
toolCallId: import("../../internal-agents/schema.js").Schema<string>;
|
|
129
|
-
input: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
130
|
-
output: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
131
|
-
}>[] | undefined>;
|
|
132
|
-
terminalErrorCode: import("../../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
133
|
-
terminalErrorMessage: import("../../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
134
|
-
}> | undefined>;
|
|
135
|
-
usage: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
136
|
-
inputTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
137
|
-
outputTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
138
|
-
reasoningTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
139
|
-
cachedInputTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
140
|
-
}> | undefined>;
|
|
141
|
-
}> | undefined>;
|
|
105
|
+
metadata: import("../../internal-agents/schema.js").Schema<Record<string, unknown> | undefined>;
|
|
142
106
|
}>[]>;
|
|
143
107
|
context: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
144
108
|
conversationId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
@@ -233,43 +197,7 @@ export declare const hostedChatRequestSchema: import("../../internal-agents/sche
|
|
|
233
197
|
type: import("../../internal-agents/schema.js").Schema<`data-${string}`>;
|
|
234
198
|
data: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
235
199
|
}>)[]>;
|
|
236
|
-
metadata: import("../../internal-agents/schema.js").Schema<
|
|
237
|
-
createdAt: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
238
|
-
isStopped: import("../../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
239
|
-
isCompleted: import("../../internal-agents/schema.js").Schema<boolean | undefined>;
|
|
240
|
-
completedAt: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
241
|
-
agentId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
242
|
-
agentName: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
243
|
-
conversationId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
244
|
-
modelId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
245
|
-
runId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
246
|
-
streamingMessageId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
247
|
-
childRunAudit: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
248
|
-
status: import("../../internal-agents/schema.js").Schema<string>;
|
|
249
|
-
description: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
250
|
-
steps: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
251
|
-
durationMs: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
252
|
-
toolCalls: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
253
|
-
toolName: import("../../internal-agents/schema.js").Schema<string>;
|
|
254
|
-
toolCallId: import("../../internal-agents/schema.js").Schema<string>;
|
|
255
|
-
input: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
256
|
-
}>[] | undefined>;
|
|
257
|
-
toolResults: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
258
|
-
toolName: import("../../internal-agents/schema.js").Schema<string>;
|
|
259
|
-
toolCallId: import("../../internal-agents/schema.js").Schema<string>;
|
|
260
|
-
input: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
261
|
-
output: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
262
|
-
}>[] | undefined>;
|
|
263
|
-
terminalErrorCode: import("../../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
264
|
-
terminalErrorMessage: import("../../internal-agents/schema.js").Schema<string | null | undefined>;
|
|
265
|
-
}> | undefined>;
|
|
266
|
-
usage: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
267
|
-
inputTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
268
|
-
outputTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
269
|
-
reasoningTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
270
|
-
cachedInputTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
271
|
-
}> | undefined>;
|
|
272
|
-
}> | undefined>;
|
|
200
|
+
metadata: import("../../internal-agents/schema.js").Schema<Record<string, unknown> | undefined>;
|
|
273
201
|
}>[]>;
|
|
274
202
|
context: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
275
203
|
conversationId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-request.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/chat-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,
|
|
1
|
+
{"version":3,"file":"chat-request.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/chat-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EACL,2BAA2B,EAG5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAMzF,eAAO,MAAM,uCAAuC;;;;;;;;GAUnD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;GAEhD,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;GAM/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;GAAkD,CAAC;AAehG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAC;AAE9E,uCAAuC;AACvC,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC;AAC3F,6CAA6C;AAC7C,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC;IAChD,OAAO,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IACxC,cAAc,CAAC,EAAE,wBAAwB,CAAC;CAC3C,CAAC;AAmBF,gFAAgF;AAChF,wBAAgB,8DAA8D,CAC5E,KAAK,EAAE,yBAAyB,GAC/B,iBAAiB,CAAC,gBAAgB,CAAC,CAcrC;AAED,sEAAsE;AACtE,wBAAgB,qDAAqD,CACnE,KAAK,EAAE,yBAAyB,GAC/B,sBAAsB,CAoBxB;AAED,gEAAgE;AAChE,wBAAgB,gDAAgD,CAC9D,KAAK,EAAE,yBAAyB,GAC/B,iBAAiB,CAInB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getChatRequestContextSchema,
|
|
1
|
+
import { getChatRequestContextSchema, getChatUiMessagePartSchema, getChatUiMessageRoleSchema, } from "../../chat/types.js";
|
|
2
2
|
import { defineSchema, lazySchema } from "../../schemas/index.js";
|
|
3
3
|
const getDurableRootRunIdSchema = defineSchema((v) => v.string().min(1).max(128).regex(/^[a-zA-Z0-9_-]+$/));
|
|
4
4
|
export const getHostedDurableRootRunDescriptorSchema = defineSchema((v) => v.object({
|
|
@@ -23,8 +23,15 @@ export const getHostedChatRuntimeOverridesSchema = defineSchema((v) => v.object(
|
|
|
23
23
|
* @deprecated Use getHostedChatRuntimeOverridesSchema()
|
|
24
24
|
*/
|
|
25
25
|
export const hostedChatRuntimeOverridesSchema = lazySchema(getHostedChatRuntimeOverridesSchema);
|
|
26
|
+
const getHostedChatRequestMessageSchema = defineSchema((v) => v.object({
|
|
27
|
+
id: v.string().min(1),
|
|
28
|
+
role: getChatUiMessageRoleSchema(),
|
|
29
|
+
parts: v.array(getChatUiMessagePartSchema()),
|
|
30
|
+
metadata: v.record(v.string(), v.unknown()).optional(),
|
|
31
|
+
}).strip());
|
|
32
|
+
const getHostedChatRequestMessagesSchema = defineSchema((v) => v.array(getHostedChatRequestMessageSchema()));
|
|
26
33
|
export const getHostedChatRequestSchema = defineSchema((v) => v.object({
|
|
27
|
-
messages:
|
|
34
|
+
messages: getHostedChatRequestMessagesSchema(),
|
|
28
35
|
context: getChatRequestContextSchema(),
|
|
29
36
|
model: v.string().optional(),
|
|
30
37
|
allowDelegation: v.boolean().optional(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRecord } from "../../chat/conversation.js";
|
|
1
|
+
import { getProviderModelMessageSourceId, isRecord } from "../../chat/conversation.js";
|
|
2
2
|
import { buildDataFileAnnotation, } from "../../chat/types.js";
|
|
3
3
|
import { toChildRunToolInputRecord } from "../child-run/execution-support.js";
|
|
4
4
|
/** Error shape for agent runtime message conversion. */
|
|
@@ -19,7 +19,7 @@ function getOptionalStringField(part, key) {
|
|
|
19
19
|
return typeof value === "string" && value.length > 0 ? value : undefined;
|
|
20
20
|
}
|
|
21
21
|
function createAgentRuntimeMessageId(message, index) {
|
|
22
|
-
return `agent-runtime-${message.role}-${index + 1}`;
|
|
22
|
+
return getProviderModelMessageSourceId(message) ?? `agent-runtime-${message.role}-${index + 1}`;
|
|
23
23
|
}
|
|
24
24
|
function createTextAgentRuntimePart(text) {
|
|
25
25
|
return hasTextContent(text) ? { type: "text", text } : null;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { InferSchema } from "../extensions/schema/index.js";
|
|
2
2
|
import type { ChatUiMessage, ChatUiMessagePart, ProviderModelMessage } from "./types.js";
|
|
3
|
+
declare const PROVIDER_MODEL_MESSAGE_SOURCE_ID: unique symbol;
|
|
4
|
+
/** Provider model message plus local-only source metadata. */
|
|
5
|
+
export type ProviderModelMessageWithSourceId = ProviderModelMessage & {
|
|
6
|
+
[PROVIDER_MODEL_MESSAGE_SOURCE_ID]?: string;
|
|
7
|
+
};
|
|
8
|
+
/** Read the local-only source UI message id attached during provider conversion. */
|
|
9
|
+
export declare function getProviderModelMessageSourceId(message: ProviderModelMessage): string | undefined;
|
|
10
|
+
/** Attach local-only source UI message id metadata to a provider message. */
|
|
11
|
+
export declare function withProviderModelMessageSourceId(message: ProviderModelMessage, sourceId: string): ProviderModelMessage;
|
|
12
|
+
/** Copy local-only source UI message id metadata when a provider message is cloned. */
|
|
13
|
+
export declare function copyProviderModelMessageSourceId<T extends ProviderModelMessage>(source: ProviderModelMessage, target: T): T;
|
|
3
14
|
/** Zod schema for get message part. */
|
|
4
15
|
export declare const getMessagePartSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
5
16
|
type: import("../internal-agents/schema.js").Schema<"text">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/src/chat/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAEV,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB,uCAAuC;AACvC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDhC,CAAC;AAEF,4CAA4C;AAC5C,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;AAE/E,4CAA4C;AAC5C,eAAO,MAAM,yBAAyB,6DAErC,CAAC;AACF,iDAAiD;AACjD,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CA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AA2BD,uDAAuD;AACvD,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,aAAa,GAAG,WAAW,EAAE,CAiEtF;AAOD,sDAAsD;AACtD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAEtE;AAED,6CAA6C;AAC7C,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAEtF;AAED,6CAA6C;AAC7C,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,GAChB,aAAa,CAaf;AA8BD,iDAAiD;AACjD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAOpE;AAED,mDAAmD;AACnD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAOxE;AAED,4CAA4C;AAC5C,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEhE;AAED,iDAAiD;AACjD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAE1E;AAED,2CAA2C;AAC3C,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAoB5E;AA8cD,sDAAsD;AACtD,wBAAgB,wCAAwC,CACtD,QAAQ,EAAE,aAAa,EAAE,GACxB,oBAAoB,EAAE,CAmCxB"}
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import { defineSchema } from "../schemas/index.js";
|
|
2
|
+
const PROVIDER_MODEL_MESSAGE_SOURCE_ID = Symbol.for("veryfront.providerModelMessageSourceId");
|
|
3
|
+
/** Read the local-only source UI message id attached during provider conversion. */
|
|
4
|
+
export function getProviderModelMessageSourceId(message) {
|
|
5
|
+
return message[PROVIDER_MODEL_MESSAGE_SOURCE_ID];
|
|
6
|
+
}
|
|
7
|
+
/** Attach local-only source UI message id metadata to a provider message. */
|
|
8
|
+
export function withProviderModelMessageSourceId(message, sourceId) {
|
|
9
|
+
Object.defineProperty(message, PROVIDER_MODEL_MESSAGE_SOURCE_ID, {
|
|
10
|
+
value: sourceId,
|
|
11
|
+
configurable: true,
|
|
12
|
+
enumerable: false,
|
|
13
|
+
writable: true,
|
|
14
|
+
});
|
|
15
|
+
return message;
|
|
16
|
+
}
|
|
17
|
+
/** Copy local-only source UI message id metadata when a provider message is cloned. */
|
|
18
|
+
export function copyProviderModelMessageSourceId(source, target) {
|
|
19
|
+
const sourceId = getProviderModelMessageSourceId(source);
|
|
20
|
+
return sourceId ? withProviderModelMessageSourceId(target, sourceId) : target;
|
|
21
|
+
}
|
|
2
22
|
/** Zod schema for get message part. */
|
|
3
23
|
export const getMessagePartSchema = defineSchema((v) => v.discriminatedUnion("type", [
|
|
4
24
|
v.object({ type: v.literal("text"), text: v.string() }),
|
|
@@ -700,13 +720,14 @@ export function convertUiMessagesToProviderModelMessages(messages) {
|
|
|
700
720
|
return [];
|
|
701
721
|
}
|
|
702
722
|
})();
|
|
703
|
-
for (const
|
|
723
|
+
for (const rawProviderMessage of converted) {
|
|
724
|
+
const providerMessage = withProviderModelMessageSourceId(rawProviderMessage, message.id);
|
|
704
725
|
const previous = providerMessages.at(-1);
|
|
705
726
|
if (previous?.role === "tool" && providerMessage.role === "tool") {
|
|
706
|
-
providerMessages[providerMessages.length - 1] = {
|
|
727
|
+
providerMessages[providerMessages.length - 1] = withProviderModelMessageSourceId({
|
|
707
728
|
role: "tool",
|
|
708
729
|
content: [...previous.content, ...providerMessage.content],
|
|
709
|
-
};
|
|
730
|
+
}, getProviderModelMessageSourceId(previous) ?? message.id);
|
|
710
731
|
continue;
|
|
711
732
|
}
|
|
712
733
|
providerMessages.push(providerMessage);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-prep.d.ts","sourceRoot":"","sources":["../../../src/src/chat/message-prep.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;
|
|
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BAAoB,EAAE,CAqBxB;AA2OD,6BAA6B;AAC7B,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,EAAE,CA4E3F;AAWD,yBAAyB;AACzB,wBAAgB,eAAe,CAAC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,EAAE,CA4IxF;AAED,yBAAyB;AACzB,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAGjF;AAED,sCAAsC;AACtC,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,EAAE,CA4B7F;AAED,wBAAwB;AACxB,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,oBAAoB,EAAE,EAChC,QAAQ,GAAE,MAAU,GACnB,oBAAoB,EAAE,CAexB;AAED,2BAA2B;AAC3B,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,EAAE,CAgE1F;AAED,4BAA4B;AAC5B,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,oBAAoB,EAAE,EAChC,MAAM,GAAE,MAA6B,EACrC,QAAQ,GAAE,MAAU,GACnB,oBAAoB,EAAE,CAMxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { convertUiMessagesToProviderModelMessages, getStringField, isReasoningPart, isToolCallPart, isToolResultPart, } from "./conversation.js";
|
|
1
|
+
import { convertUiMessagesToProviderModelMessages, copyProviderModelMessageSourceId, getStringField, isReasoningPart, isToolCallPart, isToolResultPart, } from "./conversation.js";
|
|
2
2
|
import { buildDataFileAnnotation, normalizeInlineAttachmentMediaType, } from "./types.js";
|
|
3
3
|
import { historicalToolSummaries } from "../integrations/_tool_summaries.js";
|
|
4
4
|
const CHARS_PER_TOKEN = 4;
|
|
@@ -354,18 +354,21 @@ export function sanitizeProviderModelMessages(messages) {
|
|
|
354
354
|
if (Array.isArray(message.content)) {
|
|
355
355
|
if (message.role === "user") {
|
|
356
356
|
const cleaned = cleanContent(message.content);
|
|
357
|
-
if (cleaned.length > 0)
|
|
358
|
-
result.push({ ...message, content: cleaned });
|
|
357
|
+
if (cleaned.length > 0) {
|
|
358
|
+
result.push(copyProviderModelMessageSourceId(message, { ...message, content: cleaned }));
|
|
359
|
+
}
|
|
359
360
|
}
|
|
360
361
|
else if (message.role === "assistant") {
|
|
361
362
|
const cleaned = cleanContent(message.content);
|
|
362
|
-
if (cleaned.length > 0)
|
|
363
|
-
result.push({ ...message, content: cleaned });
|
|
363
|
+
if (cleaned.length > 0) {
|
|
364
|
+
result.push(copyProviderModelMessageSourceId(message, { ...message, content: cleaned }));
|
|
365
|
+
}
|
|
364
366
|
}
|
|
365
367
|
else if (message.role === "tool") {
|
|
366
368
|
const cleaned = cleanContent(message.content);
|
|
367
|
-
if (cleaned.length > 0)
|
|
368
|
-
result.push({ ...message, content: cleaned });
|
|
369
|
+
if (cleaned.length > 0) {
|
|
370
|
+
result.push(copyProviderModelMessageSourceId(message, { ...message, content: cleaned }));
|
|
371
|
+
}
|
|
369
372
|
}
|
|
370
373
|
continue;
|
|
371
374
|
}
|
|
@@ -667,7 +670,7 @@ export function maskOldToolOutputs(messages) {
|
|
|
667
670
|
if (msg.role === "assistant" && Array.isArray(msg.content)) {
|
|
668
671
|
const filtered = msg.content.filter((part) => !isReasoningPart(part));
|
|
669
672
|
if (filtered.length !== msg.content.length) {
|
|
670
|
-
return { ...msg, content: filtered };
|
|
673
|
+
return copyProviderModelMessageSourceId(msg, { ...msg, content: filtered });
|
|
671
674
|
}
|
|
672
675
|
return msg;
|
|
673
676
|
}
|
|
@@ -715,7 +718,7 @@ export function maskOldToolOutputs(messages) {
|
|
|
715
718
|
}
|
|
716
719
|
return { ...part, output: wrapToolResultOutput(part.output, masked) };
|
|
717
720
|
});
|
|
718
|
-
return { ...msg, content: newContent };
|
|
721
|
+
return copyProviderModelMessageSourceId(msg, { ...msg, content: newContent });
|
|
719
722
|
});
|
|
720
723
|
}
|
|
721
724
|
function createSyntheticToolResult(toolCallId, toolName) {
|
|
@@ -763,10 +766,10 @@ export function repairToolPairs(messages) {
|
|
|
763
766
|
}
|
|
764
767
|
}
|
|
765
768
|
if (repairedContent.length !== message.content.length) {
|
|
766
|
-
result[index] = {
|
|
769
|
+
result[index] = copyProviderModelMessageSourceId(message, {
|
|
767
770
|
...message,
|
|
768
771
|
content: repairedContent,
|
|
769
|
-
};
|
|
772
|
+
});
|
|
770
773
|
}
|
|
771
774
|
if (regularToolCalls.length === 0) {
|
|
772
775
|
continue;
|
|
@@ -811,24 +814,24 @@ export function repairToolPairs(messages) {
|
|
|
811
814
|
laterIndex--;
|
|
812
815
|
continue;
|
|
813
816
|
}
|
|
814
|
-
result[laterIndex] = {
|
|
817
|
+
result[laterIndex] = copyProviderModelMessageSourceId(laterMessage, {
|
|
815
818
|
...laterMessage,
|
|
816
819
|
content: keptLaterContent,
|
|
817
|
-
};
|
|
820
|
+
});
|
|
818
821
|
}
|
|
819
822
|
const repairedResults = unresolvedCalls.map((toolCall) => movedResults.get(toolCall.id) ?? createSyntheticToolResult(toolCall.id, toolCall.toolName));
|
|
820
823
|
if (nextMessage?.role === "tool" && Array.isArray(nextMessage.content)) {
|
|
821
|
-
result[index + 1] = {
|
|
824
|
+
result[index + 1] = copyProviderModelMessageSourceId(nextMessage, {
|
|
822
825
|
...nextMessage,
|
|
823
826
|
content: [...repairedResults, ...nextMessage.content],
|
|
824
|
-
};
|
|
827
|
+
});
|
|
825
828
|
}
|
|
826
829
|
else {
|
|
827
830
|
const toolMessage = {
|
|
828
831
|
role: "tool",
|
|
829
832
|
content: repairedResults,
|
|
830
833
|
};
|
|
831
|
-
result.splice(index + 1, 0, toolMessage);
|
|
834
|
+
result.splice(index + 1, 0, copyProviderModelMessageSourceId(message, toolMessage));
|
|
832
835
|
}
|
|
833
836
|
mutated = true;
|
|
834
837
|
}
|
|
@@ -858,7 +861,7 @@ export function ensureToolCallInputs(messages) {
|
|
|
858
861
|
});
|
|
859
862
|
if (msgMutated) {
|
|
860
863
|
mutated = true;
|
|
861
|
-
return { ...msg, content: newContent };
|
|
864
|
+
return copyProviderModelMessageSourceId(msg, { ...msg, content: newContent });
|
|
862
865
|
}
|
|
863
866
|
return msg;
|
|
864
867
|
});
|
|
@@ -909,8 +912,9 @@ export function dedupeToolHistory(messages) {
|
|
|
909
912
|
deduped.push(message);
|
|
910
913
|
continue;
|
|
911
914
|
}
|
|
912
|
-
if (filtered.length > 0)
|
|
913
|
-
deduped.push({ ...message, content: filtered });
|
|
915
|
+
if (filtered.length > 0) {
|
|
916
|
+
deduped.push(copyProviderModelMessageSourceId(message, { ...message, content: filtered }));
|
|
917
|
+
}
|
|
914
918
|
}
|
|
915
919
|
else if (message.role === "assistant" && Array.isArray(message.content)) {
|
|
916
920
|
const { filtered, changed } = filterParts(message.content);
|
|
@@ -918,8 +922,9 @@ export function dedupeToolHistory(messages) {
|
|
|
918
922
|
deduped.push(message);
|
|
919
923
|
continue;
|
|
920
924
|
}
|
|
921
|
-
if (filtered.length > 0)
|
|
922
|
-
deduped.push({ ...message, content: filtered });
|
|
925
|
+
if (filtered.length > 0) {
|
|
926
|
+
deduped.push(copyProviderModelMessageSourceId(message, { ...message, content: filtered }));
|
|
927
|
+
}
|
|
923
928
|
}
|
|
924
929
|
else if (message.role === "tool") {
|
|
925
930
|
const { filtered, changed } = filterParts(message.content);
|
|
@@ -927,8 +932,9 @@ export function dedupeToolHistory(messages) {
|
|
|
927
932
|
deduped.push(message);
|
|
928
933
|
continue;
|
|
929
934
|
}
|
|
930
|
-
if (filtered.length > 0)
|
|
931
|
-
deduped.push({ ...message, content: filtered });
|
|
935
|
+
if (filtered.length > 0) {
|
|
936
|
+
deduped.push(copyProviderModelMessageSourceId(message, { ...message, content: filtered }));
|
|
937
|
+
}
|
|
932
938
|
}
|
|
933
939
|
else {
|
|
934
940
|
deduped.push(message);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_data.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/_data.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,UAAU,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"_data.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/_data.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,UAAU,EAAE,iBAAiB,EAuwVzC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAuExC,CAAC"}
|
|
@@ -6833,6 +6833,8 @@ export const connectors = [
|
|
|
6833
6833
|
"Mail.ReadWrite",
|
|
6834
6834
|
"Calendars.Read",
|
|
6835
6835
|
"Calendars.ReadWrite",
|
|
6836
|
+
"Group.Read.All",
|
|
6837
|
+
"Group-Conversation.Read.All",
|
|
6836
6838
|
"offline_access",
|
|
6837
6839
|
],
|
|
6838
6840
|
"tokenAuthMethod": "body",
|
|
@@ -7825,6 +7827,275 @@ export const connectors = [
|
|
|
7825
7827
|
},
|
|
7826
7828
|
},
|
|
7827
7829
|
},
|
|
7830
|
+
}, {
|
|
7831
|
+
"id": "list_shared_mailbox_emails",
|
|
7832
|
+
"name": "List Shared Mailbox Emails",
|
|
7833
|
+
"description": "List messages from a shared or delegated mailbox that the signed-in Microsoft account can access",
|
|
7834
|
+
"requiresWrite": false,
|
|
7835
|
+
"endpoint": {
|
|
7836
|
+
"method": "GET",
|
|
7837
|
+
"url": "https://graph.microsoft.com/v1.0/users/{mailbox}/mailFolders/{folderId}/messages",
|
|
7838
|
+
"params": {
|
|
7839
|
+
"mailbox": {
|
|
7840
|
+
"type": "string",
|
|
7841
|
+
"in": "path",
|
|
7842
|
+
"description": "Mailbox user principal name or Microsoft Graph user ID",
|
|
7843
|
+
"required": true,
|
|
7844
|
+
},
|
|
7845
|
+
"folderId": {
|
|
7846
|
+
"type": "string",
|
|
7847
|
+
"in": "path",
|
|
7848
|
+
"description": "Mail folder ID or well-known folder name",
|
|
7849
|
+
"required": true,
|
|
7850
|
+
"default": "inbox",
|
|
7851
|
+
},
|
|
7852
|
+
"$top": {
|
|
7853
|
+
"type": "number",
|
|
7854
|
+
"in": "query",
|
|
7855
|
+
"description": "Maximum messages to return",
|
|
7856
|
+
"default": 25,
|
|
7857
|
+
},
|
|
7858
|
+
"$select": {
|
|
7859
|
+
"type": "string",
|
|
7860
|
+
"in": "query",
|
|
7861
|
+
"description": "Comma-separated message fields to return",
|
|
7862
|
+
"default": "id,conversationId,internetMessageId,subject,from,sender,toRecipients,ccRecipients,receivedDateTime,sentDateTime,bodyPreview,categories,isRead,importance,hasAttachments,webLink,flag",
|
|
7863
|
+
},
|
|
7864
|
+
"$orderby": {
|
|
7865
|
+
"type": "string",
|
|
7866
|
+
"in": "query",
|
|
7867
|
+
"description": "Sort expression",
|
|
7868
|
+
"default": "receivedDateTime desc",
|
|
7869
|
+
},
|
|
7870
|
+
"$filter": { "type": "string", "in": "query", "description": "OData filter expression" },
|
|
7871
|
+
},
|
|
7872
|
+
"response": {
|
|
7873
|
+
"transform": "value",
|
|
7874
|
+
"historicalSummary": {
|
|
7875
|
+
"collectionKeys": ["value", "data", "messages"],
|
|
7876
|
+
"collectionName": "messages",
|
|
7877
|
+
"itemFields": [
|
|
7878
|
+
{ "name": "id" },
|
|
7879
|
+
{ "name": "conversationId" },
|
|
7880
|
+
{ "name": "internetMessageId" },
|
|
7881
|
+
{ "name": "from", "kind": "contact" },
|
|
7882
|
+
{ "name": "sender", "kind": "contact" },
|
|
7883
|
+
{ "name": "toRecipients", "kind": "contact-array" },
|
|
7884
|
+
{ "name": "ccRecipients", "kind": "contact-array" },
|
|
7885
|
+
{ "name": "subject" },
|
|
7886
|
+
{ "name": "receivedDateTime" },
|
|
7887
|
+
{ "name": "sentDateTime" },
|
|
7888
|
+
{ "name": "bodyPreview", "maxLength": 300 },
|
|
7889
|
+
{ "name": "categories", "kind": "string-array" },
|
|
7890
|
+
{ "name": "isRead" },
|
|
7891
|
+
{ "name": "importance" },
|
|
7892
|
+
{ "name": "hasAttachments" },
|
|
7893
|
+
{ "name": "webLink" },
|
|
7894
|
+
{ "name": "flag", "kind": "object" },
|
|
7895
|
+
],
|
|
7896
|
+
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
7897
|
+
"omitted": "large email bodies and provider-specific message fields",
|
|
7898
|
+
},
|
|
7899
|
+
},
|
|
7900
|
+
},
|
|
7901
|
+
}, {
|
|
7902
|
+
"id": "search_shared_mailbox_emails",
|
|
7903
|
+
"name": "Search Shared Mailbox Emails",
|
|
7904
|
+
"description": "Search messages in a shared or delegated mailbox that the signed-in Microsoft account can access",
|
|
7905
|
+
"requiresWrite": false,
|
|
7906
|
+
"endpoint": {
|
|
7907
|
+
"method": "GET",
|
|
7908
|
+
"url": "https://graph.microsoft.com/v1.0/users/{mailbox}/messages",
|
|
7909
|
+
"params": {
|
|
7910
|
+
"mailbox": {
|
|
7911
|
+
"type": "string",
|
|
7912
|
+
"in": "path",
|
|
7913
|
+
"description": "Mailbox user principal name or Microsoft Graph user ID",
|
|
7914
|
+
"required": true,
|
|
7915
|
+
},
|
|
7916
|
+
"query": {
|
|
7917
|
+
"type": "string",
|
|
7918
|
+
"in": "query",
|
|
7919
|
+
"description": "Microsoft Graph message search query. The runtime quotes the query for Graph $search.",
|
|
7920
|
+
"required": true,
|
|
7921
|
+
"queryName": "$search",
|
|
7922
|
+
"queryValueFormat": "microsoft-graph-search",
|
|
7923
|
+
},
|
|
7924
|
+
"$top": {
|
|
7925
|
+
"type": "number",
|
|
7926
|
+
"in": "query",
|
|
7927
|
+
"description": "Maximum messages to return",
|
|
7928
|
+
"default": 25,
|
|
7929
|
+
},
|
|
7930
|
+
"$select": {
|
|
7931
|
+
"type": "string",
|
|
7932
|
+
"in": "query",
|
|
7933
|
+
"description": "Comma-separated message fields to return",
|
|
7934
|
+
"default": "id,conversationId,internetMessageId,subject,from,sender,toRecipients,ccRecipients,receivedDateTime,sentDateTime,bodyPreview,categories,isRead,importance,hasAttachments,webLink,flag",
|
|
7935
|
+
},
|
|
7936
|
+
},
|
|
7937
|
+
"response": {
|
|
7938
|
+
"transform": "value",
|
|
7939
|
+
"historicalSummary": {
|
|
7940
|
+
"collectionKeys": ["value", "data", "messages"],
|
|
7941
|
+
"collectionName": "messages",
|
|
7942
|
+
"itemFields": [
|
|
7943
|
+
{ "name": "id" },
|
|
7944
|
+
{ "name": "conversationId" },
|
|
7945
|
+
{ "name": "internetMessageId" },
|
|
7946
|
+
{ "name": "from", "kind": "contact" },
|
|
7947
|
+
{ "name": "sender", "kind": "contact" },
|
|
7948
|
+
{ "name": "toRecipients", "kind": "contact-array" },
|
|
7949
|
+
{ "name": "ccRecipients", "kind": "contact-array" },
|
|
7950
|
+
{ "name": "subject" },
|
|
7951
|
+
{ "name": "receivedDateTime" },
|
|
7952
|
+
{ "name": "sentDateTime" },
|
|
7953
|
+
{ "name": "bodyPreview", "maxLength": 300 },
|
|
7954
|
+
{ "name": "categories", "kind": "string-array" },
|
|
7955
|
+
{ "name": "isRead" },
|
|
7956
|
+
{ "name": "importance" },
|
|
7957
|
+
{ "name": "hasAttachments" },
|
|
7958
|
+
{ "name": "webLink" },
|
|
7959
|
+
{ "name": "flag", "kind": "object" },
|
|
7960
|
+
],
|
|
7961
|
+
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
7962
|
+
"omitted": "large email bodies and provider-specific message fields",
|
|
7963
|
+
},
|
|
7964
|
+
},
|
|
7965
|
+
},
|
|
7966
|
+
}, {
|
|
7967
|
+
"id": "find_group_by_mail",
|
|
7968
|
+
"name": "Find Group By Mail",
|
|
7969
|
+
"description": "Find a Microsoft 365 group by primary email address before reading its group inbox threads",
|
|
7970
|
+
"requiresWrite": false,
|
|
7971
|
+
"endpoint": {
|
|
7972
|
+
"method": "GET",
|
|
7973
|
+
"url": "https://graph.microsoft.com/v1.0/groups?$filter=mail eq '{mailAddress}'",
|
|
7974
|
+
"params": {
|
|
7975
|
+
"mailAddress": {
|
|
7976
|
+
"type": "string",
|
|
7977
|
+
"in": "path",
|
|
7978
|
+
"description": "Microsoft 365 group primary email address",
|
|
7979
|
+
"required": true,
|
|
7980
|
+
},
|
|
7981
|
+
"$select": {
|
|
7982
|
+
"type": "string",
|
|
7983
|
+
"in": "query",
|
|
7984
|
+
"description": "Comma-separated group fields to return",
|
|
7985
|
+
"default": "id,displayName,mail,mailNickname,groupTypes,securityEnabled,mailEnabled",
|
|
7986
|
+
},
|
|
7987
|
+
"$top": {
|
|
7988
|
+
"type": "number",
|
|
7989
|
+
"in": "query",
|
|
7990
|
+
"description": "Maximum groups to return",
|
|
7991
|
+
"default": 5,
|
|
7992
|
+
},
|
|
7993
|
+
},
|
|
7994
|
+
"response": { "transform": "value" },
|
|
7995
|
+
},
|
|
7996
|
+
}, {
|
|
7997
|
+
"id": "list_group_threads",
|
|
7998
|
+
"name": "List Group Threads",
|
|
7999
|
+
"description": "List Microsoft 365 group inbox conversation threads",
|
|
8000
|
+
"requiresWrite": false,
|
|
8001
|
+
"endpoint": {
|
|
8002
|
+
"method": "GET",
|
|
8003
|
+
"url": "https://graph.microsoft.com/v1.0/groups/{groupId}/threads",
|
|
8004
|
+
"params": {
|
|
8005
|
+
"groupId": {
|
|
8006
|
+
"type": "string",
|
|
8007
|
+
"in": "path",
|
|
8008
|
+
"description": "Microsoft 365 group ID",
|
|
8009
|
+
"required": true,
|
|
8010
|
+
},
|
|
8011
|
+
"$top": {
|
|
8012
|
+
"type": "number",
|
|
8013
|
+
"in": "query",
|
|
8014
|
+
"description": "Maximum threads to return",
|
|
8015
|
+
"default": 25,
|
|
8016
|
+
},
|
|
8017
|
+
"$select": {
|
|
8018
|
+
"type": "string",
|
|
8019
|
+
"in": "query",
|
|
8020
|
+
"description": "Comma-separated thread fields to return",
|
|
8021
|
+
"default": "id,topic,hasAttachments,lastDeliveredDateTime,uniqueSenders,preview,isLocked",
|
|
8022
|
+
},
|
|
8023
|
+
},
|
|
8024
|
+
"response": {
|
|
8025
|
+
"transform": "value",
|
|
8026
|
+
"historicalSummary": {
|
|
8027
|
+
"collectionKeys": ["value", "data", "threads"],
|
|
8028
|
+
"collectionName": "threads",
|
|
8029
|
+
"itemFields": [
|
|
8030
|
+
{ "name": "id" },
|
|
8031
|
+
{ "name": "topic" },
|
|
8032
|
+
{ "name": "hasAttachments" },
|
|
8033
|
+
{ "name": "lastDeliveredDateTime" },
|
|
8034
|
+
{ "name": "uniqueSenders", "kind": "string-array" },
|
|
8035
|
+
{ "name": "preview", "maxLength": 300 },
|
|
8036
|
+
{ "name": "isLocked" },
|
|
8037
|
+
],
|
|
8038
|
+
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
8039
|
+
"omitted": "large group thread payload fields",
|
|
8040
|
+
},
|
|
8041
|
+
},
|
|
8042
|
+
},
|
|
8043
|
+
}, {
|
|
8044
|
+
"id": "list_group_thread_posts",
|
|
8045
|
+
"name": "List Group Thread Posts",
|
|
8046
|
+
"description": "List posts from a Microsoft 365 group inbox conversation thread",
|
|
8047
|
+
"requiresWrite": false,
|
|
8048
|
+
"endpoint": {
|
|
8049
|
+
"method": "GET",
|
|
8050
|
+
"url": "https://graph.microsoft.com/v1.0/groups/{groupId}/threads/{threadId}/posts",
|
|
8051
|
+
"params": {
|
|
8052
|
+
"groupId": {
|
|
8053
|
+
"type": "string",
|
|
8054
|
+
"in": "path",
|
|
8055
|
+
"description": "Microsoft 365 group ID",
|
|
8056
|
+
"required": true,
|
|
8057
|
+
},
|
|
8058
|
+
"threadId": {
|
|
8059
|
+
"type": "string",
|
|
8060
|
+
"in": "path",
|
|
8061
|
+
"description": "Conversation thread ID",
|
|
8062
|
+
"required": true,
|
|
8063
|
+
},
|
|
8064
|
+
"$top": {
|
|
8065
|
+
"type": "number",
|
|
8066
|
+
"in": "query",
|
|
8067
|
+
"description": "Maximum posts to return",
|
|
8068
|
+
"default": 25,
|
|
8069
|
+
},
|
|
8070
|
+
"$select": {
|
|
8071
|
+
"type": "string",
|
|
8072
|
+
"in": "query",
|
|
8073
|
+
"description": "Comma-separated post fields to return",
|
|
8074
|
+
"default": "id,conversationId,conversationThreadId,from,sender,newParticipants,receivedDateTime,hasAttachments,body,importance",
|
|
8075
|
+
},
|
|
8076
|
+
},
|
|
8077
|
+
"response": {
|
|
8078
|
+
"transform": "value",
|
|
8079
|
+
"historicalSummary": {
|
|
8080
|
+
"collectionKeys": ["value", "data", "posts"],
|
|
8081
|
+
"collectionName": "posts",
|
|
8082
|
+
"itemFields": [
|
|
8083
|
+
{ "name": "id" },
|
|
8084
|
+
{ "name": "conversationId" },
|
|
8085
|
+
{ "name": "conversationThreadId" },
|
|
8086
|
+
{ "name": "from", "kind": "contact" },
|
|
8087
|
+
{ "name": "sender", "kind": "contact" },
|
|
8088
|
+
{ "name": "newParticipants", "kind": "contact-array" },
|
|
8089
|
+
{ "name": "receivedDateTime" },
|
|
8090
|
+
{ "name": "hasAttachments" },
|
|
8091
|
+
{ "name": "body", "kind": "object" },
|
|
8092
|
+
{ "name": "importance" },
|
|
8093
|
+
],
|
|
8094
|
+
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
8095
|
+
"omitted": "large group post bodies and provider-specific post fields",
|
|
8096
|
+
},
|
|
8097
|
+
},
|
|
8098
|
+
},
|
|
7828
8099
|
}, {
|
|
7829
8100
|
"id": "list_calendars",
|
|
7830
8101
|
"name": "List Calendars",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_tool_summaries.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/_tool_summaries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC;AAExE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,oCAAoC,
|
|
1
|
+
{"version":3,"file":"_tool_summaries.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/_tool_summaries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC;AAExE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,oCAAoC,CA0vCxF,CAAC"}
|
|
@@ -1134,6 +1134,64 @@ export const historicalToolSummaries = {
|
|
|
1134
1134
|
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
1135
1135
|
"omitted": "folder provider-specific payload fields",
|
|
1136
1136
|
},
|
|
1137
|
+
"outlook__list_group_thread_posts": {
|
|
1138
|
+
"collectionKeys": ["value", "data", "posts"],
|
|
1139
|
+
"collectionName": "posts",
|
|
1140
|
+
"itemFields": [
|
|
1141
|
+
{ "name": "id" },
|
|
1142
|
+
{ "name": "conversationId" },
|
|
1143
|
+
{ "name": "conversationThreadId" },
|
|
1144
|
+
{ "name": "from", "kind": "contact" },
|
|
1145
|
+
{ "name": "sender", "kind": "contact" },
|
|
1146
|
+
{ "name": "newParticipants", "kind": "contact-array" },
|
|
1147
|
+
{ "name": "receivedDateTime" },
|
|
1148
|
+
{ "name": "hasAttachments" },
|
|
1149
|
+
{ "name": "body", "kind": "object" },
|
|
1150
|
+
{ "name": "importance" },
|
|
1151
|
+
],
|
|
1152
|
+
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
1153
|
+
"omitted": "large group post bodies and provider-specific post fields",
|
|
1154
|
+
},
|
|
1155
|
+
"outlook__list_group_threads": {
|
|
1156
|
+
"collectionKeys": ["value", "data", "threads"],
|
|
1157
|
+
"collectionName": "threads",
|
|
1158
|
+
"itemFields": [
|
|
1159
|
+
{ "name": "id" },
|
|
1160
|
+
{ "name": "topic" },
|
|
1161
|
+
{ "name": "hasAttachments" },
|
|
1162
|
+
{ "name": "lastDeliveredDateTime" },
|
|
1163
|
+
{ "name": "uniqueSenders", "kind": "string-array" },
|
|
1164
|
+
{ "name": "preview", "maxLength": 300 },
|
|
1165
|
+
{ "name": "isLocked" },
|
|
1166
|
+
],
|
|
1167
|
+
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
1168
|
+
"omitted": "large group thread payload fields",
|
|
1169
|
+
},
|
|
1170
|
+
"outlook__list_shared_mailbox_emails": {
|
|
1171
|
+
"collectionKeys": ["value", "data", "messages"],
|
|
1172
|
+
"collectionName": "messages",
|
|
1173
|
+
"itemFields": [
|
|
1174
|
+
{ "name": "id" },
|
|
1175
|
+
{ "name": "conversationId" },
|
|
1176
|
+
{ "name": "internetMessageId" },
|
|
1177
|
+
{ "name": "from", "kind": "contact" },
|
|
1178
|
+
{ "name": "sender", "kind": "contact" },
|
|
1179
|
+
{ "name": "toRecipients", "kind": "contact-array" },
|
|
1180
|
+
{ "name": "ccRecipients", "kind": "contact-array" },
|
|
1181
|
+
{ "name": "subject" },
|
|
1182
|
+
{ "name": "receivedDateTime" },
|
|
1183
|
+
{ "name": "sentDateTime" },
|
|
1184
|
+
{ "name": "bodyPreview", "maxLength": 300 },
|
|
1185
|
+
{ "name": "categories", "kind": "string-array" },
|
|
1186
|
+
{ "name": "isRead" },
|
|
1187
|
+
{ "name": "importance" },
|
|
1188
|
+
{ "name": "hasAttachments" },
|
|
1189
|
+
{ "name": "webLink" },
|
|
1190
|
+
{ "name": "flag", "kind": "object" },
|
|
1191
|
+
],
|
|
1192
|
+
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
1193
|
+
"omitted": "large email bodies and provider-specific message fields",
|
|
1194
|
+
},
|
|
1137
1195
|
"outlook__search_emails": {
|
|
1138
1196
|
"collectionKeys": ["value", "data", "messages"],
|
|
1139
1197
|
"collectionName": "messages",
|
|
@@ -1159,6 +1217,31 @@ export const historicalToolSummaries = {
|
|
|
1159
1217
|
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
1160
1218
|
"omitted": "large email bodies and provider-specific message fields",
|
|
1161
1219
|
},
|
|
1220
|
+
"outlook__search_shared_mailbox_emails": {
|
|
1221
|
+
"collectionKeys": ["value", "data", "messages"],
|
|
1222
|
+
"collectionName": "messages",
|
|
1223
|
+
"itemFields": [
|
|
1224
|
+
{ "name": "id" },
|
|
1225
|
+
{ "name": "conversationId" },
|
|
1226
|
+
{ "name": "internetMessageId" },
|
|
1227
|
+
{ "name": "from", "kind": "contact" },
|
|
1228
|
+
{ "name": "sender", "kind": "contact" },
|
|
1229
|
+
{ "name": "toRecipients", "kind": "contact-array" },
|
|
1230
|
+
{ "name": "ccRecipients", "kind": "contact-array" },
|
|
1231
|
+
{ "name": "subject" },
|
|
1232
|
+
{ "name": "receivedDateTime" },
|
|
1233
|
+
{ "name": "sentDateTime" },
|
|
1234
|
+
{ "name": "bodyPreview", "maxLength": 300 },
|
|
1235
|
+
{ "name": "categories", "kind": "string-array" },
|
|
1236
|
+
{ "name": "isRead" },
|
|
1237
|
+
{ "name": "importance" },
|
|
1238
|
+
{ "name": "hasAttachments" },
|
|
1239
|
+
{ "name": "webLink" },
|
|
1240
|
+
{ "name": "flag", "kind": "object" },
|
|
1241
|
+
],
|
|
1242
|
+
"outputFields": [{ "name": "@odata.nextLink" }, { "name": "@odata.count" }],
|
|
1243
|
+
"omitted": "large email bodies and provider-specific message fields",
|
|
1244
|
+
},
|
|
1162
1245
|
"slack__list_channels": {
|
|
1163
1246
|
"collectionKeys": ["channels", "data"],
|
|
1164
1247
|
"collectionName": "channels",
|