@orq-ai/node 4.1.0-rc.2 → 4.1.0-rc.4
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/bin/mcp-server.js +37427 -38283
- package/bin/mcp-server.js.map +72 -67
- package/docs/sdks/agents/README.md +10 -10
- package/docs/sdks/responses/README.md +5 -5
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.d.ts +1 -1
- package/funcs/agentsCreate.d.ts.map +1 -1
- package/funcs/agentsCreate.js +2 -4
- package/funcs/agentsCreate.js.map +1 -1
- package/funcs/agentsResponsesCreate.d.ts +1 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +4 -4
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsRun.d.ts +1 -1
- package/funcs/agentsRun.d.ts.map +1 -1
- package/funcs/agentsRun.js +2 -4
- package/funcs/agentsRun.js.map +1 -1
- package/funcs/agentsStream.d.ts +1 -1
- package/funcs/agentsStream.d.ts.map +1 -1
- package/funcs/agentsStream.js +4 -4
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.d.ts +1 -1
- package/funcs/agentsStreamRun.d.ts.map +1 -1
- package/funcs/agentsStreamRun.js +2 -4
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/agentsUpdate.d.ts +1 -1
- package/funcs/agentsUpdate.d.ts.map +1 -1
- package/funcs/agentsUpdate.js +4 -4
- package/funcs/agentsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/agentsCreate.d.ts +1 -1
- package/mcp-server/tools/agentsCreate.js +1 -1
- package/mcp-server/tools/agentsCreate.js.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.js +2 -3
- package/mcp-server/tools/agentsResponsesCreate.js.map +1 -1
- package/mcp-server/tools/agentsRun.d.ts +1 -1
- package/mcp-server/tools/agentsRun.js +1 -1
- package/mcp-server/tools/agentsRun.js.map +1 -1
- package/mcp-server/tools/agentsStream.d.ts +1 -1
- package/mcp-server/tools/agentsStream.js +2 -2
- package/mcp-server/tools/agentsStream.js.map +1 -1
- package/mcp-server/tools/agentsStreamRun.d.ts +1 -1
- package/mcp-server/tools/agentsStreamRun.js +1 -1
- package/mcp-server/tools/agentsStreamRun.js.map +1 -1
- package/mcp-server/tools/agentsUpdate.d.ts +1 -1
- package/mcp-server/tools/agentsUpdate.d.ts.map +1 -1
- package/mcp-server/tools/agentsUpdate.js +2 -3
- package/mcp-server/tools/agentsUpdate.js.map +1 -1
- package/models/components/datapart.d.ts +41 -0
- package/models/components/datapart.d.ts.map +1 -0
- package/models/components/datapart.js +69 -0
- package/models/components/datapart.js.map +1 -0
- package/models/components/filepart.d.ts +104 -0
- package/models/components/filepart.d.ts.map +1 -0
- package/models/components/filepart.js +134 -0
- package/models/components/filepart.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +8 -8
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +11 -12
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/textpart.d.ts +31 -0
- package/models/components/textpart.d.ts.map +1 -0
- package/models/components/textpart.js +67 -0
- package/models/components/textpart.js.map +1 -0
- package/models/components/toolcallpart.d.ts +45 -0
- package/models/components/toolcallpart.d.ts.map +1 -0
- package/models/components/toolcallpart.js +84 -0
- package/models/components/toolcallpart.js.map +1 -0
- package/models/components/toolresultpart.d.ts +39 -0
- package/models/components/toolresultpart.d.ts.map +1 -0
- package/models/components/toolresultpart.js +80 -0
- package/models/components/toolresultpart.js.map +1 -0
- package/models/operations/createagentresponserequest.d.ts +68 -44
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +92 -47
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +9 -11
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +9 -11
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentinvoke.d.ts +9 -11
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -11
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +9 -11
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +9 -11
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +9 -11
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +9 -11
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +9 -11
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +9 -11
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +9 -11
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +9 -11
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +9 -11
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +9 -11
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/invokeagent.d.ts +63 -283
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +73 -293
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +9 -11
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +9 -11
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +59 -279
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +72 -292
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +214 -1005
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +229 -1019
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +215 -1006
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +236 -1026
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +2 -2
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +2 -4
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatememorystore.d.ts +9 -20
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +9 -14
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +18 -22
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +18 -22
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +5 -5
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +4 -4
- package/sdk/agents.js.map +1 -1
- package/sdk/responses.d.ts +1 -1
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +2 -2
- package/sdk/responses.js.map +1 -1
- package/src/funcs/agentsCreate.ts +4 -8
- package/src/funcs/agentsResponsesCreate.ts +4 -4
- package/src/funcs/agentsRun.ts +4 -7
- package/src/funcs/agentsStream.ts +4 -4
- package/src/funcs/agentsStreamRun.ts +4 -9
- package/src/funcs/agentsUpdate.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/agentsCreate.ts +1 -1
- package/src/mcp-server/tools/agentsResponsesCreate.ts +2 -3
- package/src/mcp-server/tools/agentsRun.ts +1 -1
- package/src/mcp-server/tools/agentsStream.ts +2 -2
- package/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/src/mcp-server/tools/agentsUpdate.ts +2 -3
- package/src/models/components/datapart.ts +71 -0
- package/src/models/components/filepart.ts +231 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/invokedeploymentrequest.ts +34 -25
- package/src/models/components/textpart.ts +68 -0
- package/src/models/components/toolcallpart.ts +92 -0
- package/src/models/components/toolresultpart.ts +86 -0
- package/src/models/operations/createagentresponserequest.ts +194 -100
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createprompt.ts +9 -11
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentinvoke.ts +9 -11
- package/src/models/operations/deployments.ts +9 -11
- package/src/models/operations/deploymentstream.ts +9 -11
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +9 -11
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +9 -11
- package/src/models/operations/getpromptversion.ts +9 -11
- package/src/models/operations/invokeagent.ts +158 -682
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +9 -11
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +143 -697
- package/src/models/operations/streamagent.ts +2226 -4563
- package/src/models/operations/streamrunagent.ts +2189 -4615
- package/src/models/operations/updateagent.ts +4 -6
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatememorystore.ts +9 -20
- package/src/models/operations/updateprompt.ts +18 -22
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +7 -7
- package/src/sdk/responses.ts +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import * as components from "../components/index.js";
|
|
4
5
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
6
|
/**
|
|
6
7
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
@@ -635,25 +636,25 @@ export type StreamRunAgentRoleUserMessage = ClosedEnum<typeof StreamRunAgentRole
|
|
|
635
636
|
* Message role (user or tool for continuing executions)
|
|
636
637
|
*/
|
|
637
638
|
export type StreamRunAgentRole = StreamRunAgentRoleUserMessage | StreamRunAgentRoleToolMessage;
|
|
638
|
-
export declare const
|
|
639
|
+
export declare const StreamRunAgentPublicMessagePartAgentsKind: {
|
|
639
640
|
readonly ToolResult: "tool_result";
|
|
640
641
|
};
|
|
641
|
-
export type
|
|
642
|
+
export type StreamRunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof StreamRunAgentPublicMessagePartAgentsKind>;
|
|
642
643
|
/**
|
|
643
644
|
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
644
645
|
*/
|
|
645
646
|
export type StreamRunAgentPublicMessagePartToolResultPart = {
|
|
646
|
-
kind:
|
|
647
|
+
kind: StreamRunAgentPublicMessagePartAgentsKind;
|
|
647
648
|
toolCallId: string;
|
|
648
649
|
result?: any | undefined;
|
|
649
650
|
metadata?: {
|
|
650
651
|
[k: string]: any;
|
|
651
652
|
} | undefined;
|
|
652
653
|
};
|
|
653
|
-
export declare const
|
|
654
|
+
export declare const StreamRunAgentPublicMessagePartKind: {
|
|
654
655
|
readonly File: "file";
|
|
655
656
|
};
|
|
656
|
-
export type
|
|
657
|
+
export type StreamRunAgentPublicMessagePartKind = ClosedEnum<typeof StreamRunAgentPublicMessagePartKind>;
|
|
657
658
|
/**
|
|
658
659
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
659
660
|
*/
|
|
@@ -693,27 +694,16 @@ export type StreamRunAgentPublicMessagePartFile = StreamRunAgentFileBinaryFormat
|
|
|
693
694
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
694
695
|
*/
|
|
695
696
|
export type StreamRunAgentPublicMessagePartFilePart = {
|
|
696
|
-
kind:
|
|
697
|
+
kind: StreamRunAgentPublicMessagePartKind;
|
|
697
698
|
file: StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
|
|
698
699
|
metadata?: {
|
|
699
700
|
[k: string]: any;
|
|
700
701
|
} | undefined;
|
|
701
702
|
};
|
|
702
|
-
export declare const StreamRunAgentPublicMessagePartKind: {
|
|
703
|
-
readonly Text: "text";
|
|
704
|
-
};
|
|
705
|
-
export type StreamRunAgentPublicMessagePartKind = ClosedEnum<typeof StreamRunAgentPublicMessagePartKind>;
|
|
706
|
-
/**
|
|
707
|
-
* Text content part. Use this to send text messages to the agent.
|
|
708
|
-
*/
|
|
709
|
-
export type StreamRunAgentPublicMessagePartTextPart = {
|
|
710
|
-
kind: StreamRunAgentPublicMessagePartKind;
|
|
711
|
-
text: string;
|
|
712
|
-
};
|
|
713
703
|
/**
|
|
714
704
|
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
715
705
|
*/
|
|
716
|
-
export type StreamRunAgentPublicMessagePart =
|
|
706
|
+
export type StreamRunAgentPublicMessagePart = components.TextPart | StreamRunAgentPublicMessagePartFilePart | StreamRunAgentPublicMessagePartToolResultPart;
|
|
717
707
|
/**
|
|
718
708
|
* The A2A format message containing the task for the agent to perform.
|
|
719
709
|
*/
|
|
@@ -729,7 +719,7 @@ export type StreamRunAgentA2AMessage = {
|
|
|
729
719
|
/**
|
|
730
720
|
* A2A message parts (text, file, or tool_result only)
|
|
731
721
|
*/
|
|
732
|
-
parts: Array<
|
|
722
|
+
parts: Array<components.TextPart | StreamRunAgentPublicMessagePartFilePart | StreamRunAgentPublicMessagePartToolResultPart>;
|
|
733
723
|
};
|
|
734
724
|
/**
|
|
735
725
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
@@ -1543,6 +1533,7 @@ export type StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody15Data
|
|
|
1543
1533
|
actionType: string;
|
|
1544
1534
|
toolExecutionContext: StreamRunAgentDataToolExecutionContext;
|
|
1545
1535
|
responseId?: string | undefined;
|
|
1536
|
+
workflowRunId: string;
|
|
1546
1537
|
};
|
|
1547
1538
|
export type Fifteen = {
|
|
1548
1539
|
type: StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody15Type;
|
|
@@ -1602,6 +1593,7 @@ export type StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody14Data
|
|
|
1602
1593
|
actionType: string;
|
|
1603
1594
|
toolExecutionContext: DataToolExecutionContext;
|
|
1604
1595
|
responseId?: string | undefined;
|
|
1596
|
+
workflowRunId: string;
|
|
1605
1597
|
};
|
|
1606
1598
|
export type Fourteen = {
|
|
1607
1599
|
type: StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody14Type;
|
|
@@ -1666,6 +1658,7 @@ export type StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody13Data
|
|
|
1666
1658
|
};
|
|
1667
1659
|
toolExecutionContext: ToolExecutionContext;
|
|
1668
1660
|
responseId?: string | undefined;
|
|
1661
|
+
workflowRunId: string;
|
|
1669
1662
|
};
|
|
1670
1663
|
export type Thirteen = {
|
|
1671
1664
|
type: StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody13Type;
|
|
@@ -1684,120 +1677,31 @@ export declare const StreamRunAgentDataAgentsResponseRole: {
|
|
|
1684
1677
|
readonly Tool: "tool";
|
|
1685
1678
|
};
|
|
1686
1679
|
export type StreamRunAgentDataAgentsResponseRole = ClosedEnum<typeof StreamRunAgentDataAgentsResponseRole>;
|
|
1687
|
-
export
|
|
1688
|
-
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
metadata?: {
|
|
1699
|
-
[k: string]: any;
|
|
1700
|
-
} | undefined;
|
|
1701
|
-
};
|
|
1702
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind: {
|
|
1703
|
-
readonly ToolCall: "tool_call";
|
|
1704
|
-
};
|
|
1705
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
1706
|
-
/**
|
|
1707
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
1708
|
-
*/
|
|
1709
|
-
export type StreamRunAgentPartsAgentsResponse200ToolCallPart = {
|
|
1710
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind;
|
|
1711
|
-
toolName: string;
|
|
1712
|
-
toolCallId: string;
|
|
1713
|
-
arguments: {
|
|
1714
|
-
[k: string]: any;
|
|
1715
|
-
};
|
|
1716
|
-
metadata?: {
|
|
1717
|
-
[k: string]: any;
|
|
1718
|
-
} | undefined;
|
|
1719
|
-
};
|
|
1720
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind: {
|
|
1721
|
-
readonly File: "file";
|
|
1722
|
-
};
|
|
1723
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
1724
|
-
/**
|
|
1725
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
1726
|
-
*/
|
|
1727
|
-
export type StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat = {
|
|
1728
|
-
/**
|
|
1729
|
-
* URL for the File content
|
|
1730
|
-
*/
|
|
1731
|
-
uri: string;
|
|
1732
|
-
/**
|
|
1733
|
-
* Optional mimeType for the file
|
|
1734
|
-
*/
|
|
1735
|
-
mimeType?: string | undefined;
|
|
1736
|
-
/**
|
|
1737
|
-
* Optional name for the file
|
|
1738
|
-
*/
|
|
1739
|
-
name?: string | undefined;
|
|
1740
|
-
};
|
|
1741
|
-
/**
|
|
1742
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
1743
|
-
*/
|
|
1744
|
-
export type StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat = {
|
|
1745
|
-
/**
|
|
1746
|
-
* base64 encoded content of the file
|
|
1747
|
-
*/
|
|
1748
|
-
bytes: string;
|
|
1749
|
-
/**
|
|
1750
|
-
* Optional mimeType for the file
|
|
1751
|
-
*/
|
|
1752
|
-
mimeType?: string | undefined;
|
|
1753
|
-
/**
|
|
1754
|
-
* Optional name for the file
|
|
1755
|
-
*/
|
|
1756
|
-
name?: string | undefined;
|
|
1757
|
-
};
|
|
1758
|
-
export type StreamRunAgentPartsAgentsResponse200File = StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat | StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat;
|
|
1759
|
-
/**
|
|
1760
|
-
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
1761
|
-
*/
|
|
1762
|
-
export type StreamRunAgentPartsAgentsResponse200FilePart = {
|
|
1763
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind;
|
|
1764
|
-
file: StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat | StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat;
|
|
1765
|
-
metadata?: {
|
|
1766
|
-
[k: string]: any;
|
|
1767
|
-
} | undefined;
|
|
1768
|
-
};
|
|
1769
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind: {
|
|
1770
|
-
readonly Data: "data";
|
|
1771
|
-
};
|
|
1772
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
1773
|
-
/**
|
|
1774
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
1775
|
-
*/
|
|
1776
|
-
export type StreamRunAgentPartsAgentsResponse200DataPart = {
|
|
1777
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind;
|
|
1778
|
-
data: {
|
|
1779
|
-
[k: string]: any;
|
|
1780
|
-
};
|
|
1781
|
-
metadata?: {
|
|
1782
|
-
[k: string]: any;
|
|
1783
|
-
} | undefined;
|
|
1784
|
-
};
|
|
1785
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind: {
|
|
1786
|
-
readonly Text: "text";
|
|
1787
|
-
};
|
|
1788
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
1789
|
-
/**
|
|
1790
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
1791
|
-
*/
|
|
1792
|
-
export type StreamRunAgentPartsAgentsResponse200TextPart = {
|
|
1793
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind;
|
|
1794
|
-
text: string;
|
|
1795
|
-
};
|
|
1796
|
-
export type StreamRunAgentDataAgentsResponseParts = StreamRunAgentPartsAgentsResponse200ToolCallPart | StreamRunAgentPartsAgentsResponse200TextPart | StreamRunAgentPartsAgentsResponse200DataPart | StreamRunAgentPartsAgentsResponse200FilePart | StreamRunAgentPartsAgentsResponse200ToolResultPart;
|
|
1680
|
+
export type StreamRunAgentDataAgentsResponseParts = (components.ToolCallPart & {
|
|
1681
|
+
kind: "tool_call";
|
|
1682
|
+
}) | (components.TextPart & {
|
|
1683
|
+
kind: "text";
|
|
1684
|
+
}) | (components.DataPart & {
|
|
1685
|
+
kind: "data";
|
|
1686
|
+
}) | (components.FilePart & {
|
|
1687
|
+
kind: "file";
|
|
1688
|
+
}) | (components.ToolResultPart & {
|
|
1689
|
+
kind: "tool_result";
|
|
1690
|
+
});
|
|
1797
1691
|
export type DataMessage = {
|
|
1798
1692
|
messageId?: string | undefined;
|
|
1799
1693
|
role: StreamRunAgentDataAgentsResponseRole;
|
|
1800
|
-
parts: Array<
|
|
1694
|
+
parts: Array<(components.ToolCallPart & {
|
|
1695
|
+
kind: "tool_call";
|
|
1696
|
+
}) | (components.TextPart & {
|
|
1697
|
+
kind: "text";
|
|
1698
|
+
}) | (components.DataPart & {
|
|
1699
|
+
kind: "data";
|
|
1700
|
+
}) | (components.FilePart & {
|
|
1701
|
+
kind: "file";
|
|
1702
|
+
}) | (components.ToolResultPart & {
|
|
1703
|
+
kind: "tool_result";
|
|
1704
|
+
})>;
|
|
1801
1705
|
metadata?: {
|
|
1802
1706
|
[k: string]: any;
|
|
1803
1707
|
} | undefined;
|
|
@@ -1893,6 +1797,7 @@ export type StreamRunAgentDataAgentsResponse200TextEventStreamResponseBodyData =
|
|
|
1893
1797
|
} | undefined;
|
|
1894
1798
|
reviewSource?: string | undefined;
|
|
1895
1799
|
reviewedById?: string | undefined;
|
|
1800
|
+
workflowRunId: string;
|
|
1896
1801
|
};
|
|
1897
1802
|
export type Seven = {
|
|
1898
1803
|
type: StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody7Type;
|
|
@@ -1976,6 +1881,7 @@ export type StreamRunAgentDataAgentsResponse200Data = {
|
|
|
1976
1881
|
* ID of the response tracking this execution
|
|
1977
1882
|
*/
|
|
1978
1883
|
responseId?: string | undefined;
|
|
1884
|
+
workflowRunId: string;
|
|
1979
1885
|
};
|
|
1980
1886
|
export type StreamRunAgentData5 = {
|
|
1981
1887
|
type: StreamRunAgentDataAgentsResponse200TextEventStreamType;
|
|
@@ -2002,116 +1908,17 @@ export declare const StreamRunAgentDataAgentsRole: {
|
|
|
2002
1908
|
* Extended A2A message role
|
|
2003
1909
|
*/
|
|
2004
1910
|
export type StreamRunAgentDataAgentsRole = ClosedEnum<typeof StreamRunAgentDataAgentsRole>;
|
|
2005
|
-
export
|
|
2006
|
-
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
metadata?: {
|
|
2017
|
-
[k: string]: any;
|
|
2018
|
-
} | undefined;
|
|
2019
|
-
};
|
|
2020
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind: {
|
|
2021
|
-
readonly ToolCall: "tool_call";
|
|
2022
|
-
};
|
|
2023
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind>;
|
|
2024
|
-
/**
|
|
2025
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
2026
|
-
*/
|
|
2027
|
-
export type StreamRunAgentPartsAgentsResponseToolCallPart = {
|
|
2028
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind;
|
|
2029
|
-
toolName: string;
|
|
2030
|
-
toolCallId: string;
|
|
2031
|
-
arguments: {
|
|
2032
|
-
[k: string]: any;
|
|
2033
|
-
};
|
|
2034
|
-
metadata?: {
|
|
2035
|
-
[k: string]: any;
|
|
2036
|
-
} | undefined;
|
|
2037
|
-
};
|
|
2038
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind: {
|
|
2039
|
-
readonly File: "file";
|
|
2040
|
-
};
|
|
2041
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind>;
|
|
2042
|
-
/**
|
|
2043
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
2044
|
-
*/
|
|
2045
|
-
export type StreamRunAgentFileAgentsResponse200FileInURIFormat = {
|
|
2046
|
-
/**
|
|
2047
|
-
* URL for the File content
|
|
2048
|
-
*/
|
|
2049
|
-
uri: string;
|
|
2050
|
-
/**
|
|
2051
|
-
* Optional mimeType for the file
|
|
2052
|
-
*/
|
|
2053
|
-
mimeType?: string | undefined;
|
|
2054
|
-
/**
|
|
2055
|
-
* Optional name for the file
|
|
2056
|
-
*/
|
|
2057
|
-
name?: string | undefined;
|
|
2058
|
-
};
|
|
2059
|
-
/**
|
|
2060
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
2061
|
-
*/
|
|
2062
|
-
export type StreamRunAgentFileAgentsResponse200BinaryFormat = {
|
|
2063
|
-
/**
|
|
2064
|
-
* base64 encoded content of the file
|
|
2065
|
-
*/
|
|
2066
|
-
bytes: string;
|
|
2067
|
-
/**
|
|
2068
|
-
* Optional mimeType for the file
|
|
2069
|
-
*/
|
|
2070
|
-
mimeType?: string | undefined;
|
|
2071
|
-
/**
|
|
2072
|
-
* Optional name for the file
|
|
2073
|
-
*/
|
|
2074
|
-
name?: string | undefined;
|
|
2075
|
-
};
|
|
2076
|
-
export type StreamRunAgentPartsAgentsResponseFile = StreamRunAgentFileAgentsResponse200BinaryFormat | StreamRunAgentFileAgentsResponse200FileInURIFormat;
|
|
2077
|
-
/**
|
|
2078
|
-
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
2079
|
-
*/
|
|
2080
|
-
export type StreamRunAgentPartsAgentsResponseFilePart = {
|
|
2081
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind;
|
|
2082
|
-
file: StreamRunAgentFileAgentsResponse200BinaryFormat | StreamRunAgentFileAgentsResponse200FileInURIFormat;
|
|
2083
|
-
metadata?: {
|
|
2084
|
-
[k: string]: any;
|
|
2085
|
-
} | undefined;
|
|
2086
|
-
};
|
|
2087
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind: {
|
|
2088
|
-
readonly Data: "data";
|
|
2089
|
-
};
|
|
2090
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind>;
|
|
2091
|
-
/**
|
|
2092
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
2093
|
-
*/
|
|
2094
|
-
export type StreamRunAgentPartsAgentsResponseDataPart = {
|
|
2095
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind;
|
|
2096
|
-
data: {
|
|
2097
|
-
[k: string]: any;
|
|
2098
|
-
};
|
|
2099
|
-
metadata?: {
|
|
2100
|
-
[k: string]: any;
|
|
2101
|
-
} | undefined;
|
|
2102
|
-
};
|
|
2103
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind: {
|
|
2104
|
-
readonly Text: "text";
|
|
2105
|
-
};
|
|
2106
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind>;
|
|
2107
|
-
/**
|
|
2108
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
2109
|
-
*/
|
|
2110
|
-
export type StreamRunAgentPartsAgentsResponseTextPart = {
|
|
2111
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind;
|
|
2112
|
-
text: string;
|
|
2113
|
-
};
|
|
2114
|
-
export type StreamRunAgentDataAgentsParts = StreamRunAgentPartsAgentsResponseToolCallPart | StreamRunAgentPartsAgentsResponseTextPart | StreamRunAgentPartsAgentsResponseDataPart | StreamRunAgentPartsAgentsResponseFilePart | StreamRunAgentPartsAgentsResponseToolResultPart;
|
|
1911
|
+
export type StreamRunAgentDataAgentsParts = (components.ToolCallPart & {
|
|
1912
|
+
kind: "tool_call";
|
|
1913
|
+
}) | (components.TextPart & {
|
|
1914
|
+
kind: "text";
|
|
1915
|
+
}) | (components.DataPart & {
|
|
1916
|
+
kind: "data";
|
|
1917
|
+
}) | (components.FilePart & {
|
|
1918
|
+
kind: "file";
|
|
1919
|
+
}) | (components.ToolResultPart & {
|
|
1920
|
+
kind: "tool_result";
|
|
1921
|
+
});
|
|
2115
1922
|
/**
|
|
2116
1923
|
* Full last message in A2A format (for backwards compatibility)
|
|
2117
1924
|
*/
|
|
@@ -2121,7 +1928,17 @@ export type LastMessageFull = {
|
|
|
2121
1928
|
* Extended A2A message role
|
|
2122
1929
|
*/
|
|
2123
1930
|
role: StreamRunAgentDataAgentsRole;
|
|
2124
|
-
parts: Array<
|
|
1931
|
+
parts: Array<(components.ToolCallPart & {
|
|
1932
|
+
kind: "tool_call";
|
|
1933
|
+
}) | (components.TextPart & {
|
|
1934
|
+
kind: "text";
|
|
1935
|
+
}) | (components.DataPart & {
|
|
1936
|
+
kind: "data";
|
|
1937
|
+
}) | (components.FilePart & {
|
|
1938
|
+
kind: "file";
|
|
1939
|
+
}) | (components.ToolResultPart & {
|
|
1940
|
+
kind: "tool_result";
|
|
1941
|
+
})>;
|
|
2125
1942
|
metadata?: {
|
|
2126
1943
|
[k: string]: any;
|
|
2127
1944
|
} | undefined;
|
|
@@ -2208,6 +2025,7 @@ export type StreamRunAgentDataAgentsResponseData = {
|
|
|
2208
2025
|
* Token usage from the last agent message
|
|
2209
2026
|
*/
|
|
2210
2027
|
usage?: StreamRunAgentDataUsage | undefined;
|
|
2028
|
+
workflowRunId: string;
|
|
2211
2029
|
/**
|
|
2212
2030
|
* ID of the response tracking this execution
|
|
2213
2031
|
*/
|
|
@@ -2232,120 +2050,31 @@ export declare const StreamRunAgentDataRole: {
|
|
|
2232
2050
|
readonly System: "system";
|
|
2233
2051
|
};
|
|
2234
2052
|
export type StreamRunAgentDataRole = ClosedEnum<typeof StreamRunAgentDataRole>;
|
|
2235
|
-
export
|
|
2236
|
-
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
metadata?: {
|
|
2247
|
-
[k: string]: any;
|
|
2248
|
-
} | undefined;
|
|
2249
|
-
};
|
|
2250
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind: {
|
|
2251
|
-
readonly ToolCall: "tool_call";
|
|
2252
|
-
};
|
|
2253
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
2254
|
-
/**
|
|
2255
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
2256
|
-
*/
|
|
2257
|
-
export type StreamRunAgentPartsAgentsToolCallPart = {
|
|
2258
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind;
|
|
2259
|
-
toolName: string;
|
|
2260
|
-
toolCallId: string;
|
|
2261
|
-
arguments: {
|
|
2262
|
-
[k: string]: any;
|
|
2263
|
-
};
|
|
2264
|
-
metadata?: {
|
|
2265
|
-
[k: string]: any;
|
|
2266
|
-
} | undefined;
|
|
2267
|
-
};
|
|
2268
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind: {
|
|
2269
|
-
readonly File: "file";
|
|
2270
|
-
};
|
|
2271
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
2272
|
-
/**
|
|
2273
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
2274
|
-
*/
|
|
2275
|
-
export type StreamRunAgentFileAgentsResponseFileInURIFormat = {
|
|
2276
|
-
/**
|
|
2277
|
-
* URL for the File content
|
|
2278
|
-
*/
|
|
2279
|
-
uri: string;
|
|
2280
|
-
/**
|
|
2281
|
-
* Optional mimeType for the file
|
|
2282
|
-
*/
|
|
2283
|
-
mimeType?: string | undefined;
|
|
2284
|
-
/**
|
|
2285
|
-
* Optional name for the file
|
|
2286
|
-
*/
|
|
2287
|
-
name?: string | undefined;
|
|
2288
|
-
};
|
|
2289
|
-
/**
|
|
2290
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
2291
|
-
*/
|
|
2292
|
-
export type StreamRunAgentFileAgentsResponseBinaryFormat = {
|
|
2293
|
-
/**
|
|
2294
|
-
* base64 encoded content of the file
|
|
2295
|
-
*/
|
|
2296
|
-
bytes: string;
|
|
2297
|
-
/**
|
|
2298
|
-
* Optional mimeType for the file
|
|
2299
|
-
*/
|
|
2300
|
-
mimeType?: string | undefined;
|
|
2301
|
-
/**
|
|
2302
|
-
* Optional name for the file
|
|
2303
|
-
*/
|
|
2304
|
-
name?: string | undefined;
|
|
2305
|
-
};
|
|
2306
|
-
export type StreamRunAgentPartsAgentsFile = StreamRunAgentFileAgentsResponseBinaryFormat | StreamRunAgentFileAgentsResponseFileInURIFormat;
|
|
2307
|
-
/**
|
|
2308
|
-
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
2309
|
-
*/
|
|
2310
|
-
export type StreamRunAgentPartsAgentsFilePart = {
|
|
2311
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind;
|
|
2312
|
-
file: StreamRunAgentFileAgentsResponseBinaryFormat | StreamRunAgentFileAgentsResponseFileInURIFormat;
|
|
2313
|
-
metadata?: {
|
|
2314
|
-
[k: string]: any;
|
|
2315
|
-
} | undefined;
|
|
2316
|
-
};
|
|
2317
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind: {
|
|
2318
|
-
readonly Data: "data";
|
|
2319
|
-
};
|
|
2320
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
2321
|
-
/**
|
|
2322
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
2323
|
-
*/
|
|
2324
|
-
export type StreamRunAgentPartsAgentsDataPart = {
|
|
2325
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind;
|
|
2326
|
-
data: {
|
|
2327
|
-
[k: string]: any;
|
|
2328
|
-
};
|
|
2329
|
-
metadata?: {
|
|
2330
|
-
[k: string]: any;
|
|
2331
|
-
} | undefined;
|
|
2332
|
-
};
|
|
2333
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyKind: {
|
|
2334
|
-
readonly Text: "text";
|
|
2335
|
-
};
|
|
2336
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
2337
|
-
/**
|
|
2338
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
2339
|
-
*/
|
|
2340
|
-
export type StreamRunAgentPartsAgentsTextPart = {
|
|
2341
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyKind;
|
|
2342
|
-
text: string;
|
|
2343
|
-
};
|
|
2344
|
-
export type StreamRunAgentDataParts = StreamRunAgentPartsAgentsToolCallPart | StreamRunAgentPartsAgentsTextPart | StreamRunAgentPartsAgentsDataPart | StreamRunAgentPartsAgentsFilePart | StreamRunAgentPartsAgentsToolResultPart;
|
|
2053
|
+
export type StreamRunAgentDataParts = (components.ToolCallPart & {
|
|
2054
|
+
kind: "tool_call";
|
|
2055
|
+
}) | (components.TextPart & {
|
|
2056
|
+
kind: "text";
|
|
2057
|
+
}) | (components.DataPart & {
|
|
2058
|
+
kind: "data";
|
|
2059
|
+
}) | (components.FilePart & {
|
|
2060
|
+
kind: "file";
|
|
2061
|
+
}) | (components.ToolResultPart & {
|
|
2062
|
+
kind: "tool_result";
|
|
2063
|
+
});
|
|
2345
2064
|
export type MessageDifference = {
|
|
2346
2065
|
messageId: string;
|
|
2347
2066
|
role: StreamRunAgentDataRole;
|
|
2348
|
-
parts: Array<
|
|
2067
|
+
parts: Array<(components.ToolCallPart & {
|
|
2068
|
+
kind: "tool_call";
|
|
2069
|
+
}) | (components.TextPart & {
|
|
2070
|
+
kind: "text";
|
|
2071
|
+
}) | (components.DataPart & {
|
|
2072
|
+
kind: "data";
|
|
2073
|
+
}) | (components.FilePart & {
|
|
2074
|
+
kind: "file";
|
|
2075
|
+
}) | (components.ToolResultPart & {
|
|
2076
|
+
kind: "tool_result";
|
|
2077
|
+
})>;
|
|
2349
2078
|
metadata?: {
|
|
2350
2079
|
[k: string]: any;
|
|
2351
2080
|
} | undefined;
|
|
@@ -2594,129 +2323,40 @@ export declare const DataRole: {
|
|
|
2594
2323
|
* Extended A2A message role
|
|
2595
2324
|
*/
|
|
2596
2325
|
export type DataRole = ClosedEnum<typeof DataRole>;
|
|
2597
|
-
export
|
|
2598
|
-
|
|
2326
|
+
export type DataParts = (components.ToolCallPart & {
|
|
2327
|
+
kind: "tool_call";
|
|
2328
|
+
}) | (components.TextPart & {
|
|
2329
|
+
kind: "text";
|
|
2330
|
+
}) | (components.DataPart & {
|
|
2331
|
+
kind: "data";
|
|
2332
|
+
}) | (components.FilePart & {
|
|
2333
|
+
kind: "file";
|
|
2334
|
+
}) | (components.ToolResultPart & {
|
|
2335
|
+
kind: "tool_result";
|
|
2336
|
+
});
|
|
2337
|
+
export type InputMessage = {
|
|
2338
|
+
messageId?: string | undefined;
|
|
2339
|
+
/**
|
|
2340
|
+
* Extended A2A message role
|
|
2341
|
+
*/
|
|
2342
|
+
role: DataRole;
|
|
2343
|
+
parts: Array<(components.ToolCallPart & {
|
|
2344
|
+
kind: "tool_call";
|
|
2345
|
+
}) | (components.TextPart & {
|
|
2346
|
+
kind: "text";
|
|
2347
|
+
}) | (components.DataPart & {
|
|
2348
|
+
kind: "data";
|
|
2349
|
+
}) | (components.FilePart & {
|
|
2350
|
+
kind: "file";
|
|
2351
|
+
}) | (components.ToolResultPart & {
|
|
2352
|
+
kind: "tool_result";
|
|
2353
|
+
})>;
|
|
2354
|
+
metadata?: {
|
|
2355
|
+
[k: string]: any;
|
|
2356
|
+
} | undefined;
|
|
2599
2357
|
};
|
|
2600
|
-
export type StreamRunAgentPartsAgentsResponse200TextEventStreamKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamKind>;
|
|
2601
2358
|
/**
|
|
2602
|
-
*
|
|
2603
|
-
*/
|
|
2604
|
-
export type StreamRunAgentPartsToolResultPart = {
|
|
2605
|
-
kind: StreamRunAgentPartsAgentsResponse200TextEventStreamKind;
|
|
2606
|
-
toolCallId: string;
|
|
2607
|
-
result?: any | undefined;
|
|
2608
|
-
metadata?: {
|
|
2609
|
-
[k: string]: any;
|
|
2610
|
-
} | undefined;
|
|
2611
|
-
};
|
|
2612
|
-
export declare const StreamRunAgentPartsAgentsResponse200Kind: {
|
|
2613
|
-
readonly ToolCall: "tool_call";
|
|
2614
|
-
};
|
|
2615
|
-
export type StreamRunAgentPartsAgentsResponse200Kind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponse200Kind>;
|
|
2616
|
-
/**
|
|
2617
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
2618
|
-
*/
|
|
2619
|
-
export type StreamRunAgentPartsToolCallPart = {
|
|
2620
|
-
kind: StreamRunAgentPartsAgentsResponse200Kind;
|
|
2621
|
-
toolName: string;
|
|
2622
|
-
toolCallId: string;
|
|
2623
|
-
arguments: {
|
|
2624
|
-
[k: string]: any;
|
|
2625
|
-
};
|
|
2626
|
-
metadata?: {
|
|
2627
|
-
[k: string]: any;
|
|
2628
|
-
} | undefined;
|
|
2629
|
-
};
|
|
2630
|
-
export declare const StreamRunAgentPartsAgentsResponseKind: {
|
|
2631
|
-
readonly File: "file";
|
|
2632
|
-
};
|
|
2633
|
-
export type StreamRunAgentPartsAgentsResponseKind = ClosedEnum<typeof StreamRunAgentPartsAgentsResponseKind>;
|
|
2634
|
-
/**
|
|
2635
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
2636
|
-
*/
|
|
2637
|
-
export type StreamRunAgentFileAgentsFileInURIFormat = {
|
|
2638
|
-
/**
|
|
2639
|
-
* URL for the File content
|
|
2640
|
-
*/
|
|
2641
|
-
uri: string;
|
|
2642
|
-
/**
|
|
2643
|
-
* Optional mimeType for the file
|
|
2644
|
-
*/
|
|
2645
|
-
mimeType?: string | undefined;
|
|
2646
|
-
/**
|
|
2647
|
-
* Optional name for the file
|
|
2648
|
-
*/
|
|
2649
|
-
name?: string | undefined;
|
|
2650
|
-
};
|
|
2651
|
-
/**
|
|
2652
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
2653
|
-
*/
|
|
2654
|
-
export type StreamRunAgentFileAgentsBinaryFormat = {
|
|
2655
|
-
/**
|
|
2656
|
-
* base64 encoded content of the file
|
|
2657
|
-
*/
|
|
2658
|
-
bytes: string;
|
|
2659
|
-
/**
|
|
2660
|
-
* Optional mimeType for the file
|
|
2661
|
-
*/
|
|
2662
|
-
mimeType?: string | undefined;
|
|
2663
|
-
/**
|
|
2664
|
-
* Optional name for the file
|
|
2665
|
-
*/
|
|
2666
|
-
name?: string | undefined;
|
|
2667
|
-
};
|
|
2668
|
-
export type StreamRunAgentPartsFile = StreamRunAgentFileAgentsBinaryFormat | StreamRunAgentFileAgentsFileInURIFormat;
|
|
2669
|
-
/**
|
|
2670
|
-
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
2671
|
-
*/
|
|
2672
|
-
export type StreamRunAgentPartsFilePart = {
|
|
2673
|
-
kind: StreamRunAgentPartsAgentsResponseKind;
|
|
2674
|
-
file: StreamRunAgentFileAgentsBinaryFormat | StreamRunAgentFileAgentsFileInURIFormat;
|
|
2675
|
-
metadata?: {
|
|
2676
|
-
[k: string]: any;
|
|
2677
|
-
} | undefined;
|
|
2678
|
-
};
|
|
2679
|
-
export declare const StreamRunAgentPartsAgentsKind: {
|
|
2680
|
-
readonly Data: "data";
|
|
2681
|
-
};
|
|
2682
|
-
export type StreamRunAgentPartsAgentsKind = ClosedEnum<typeof StreamRunAgentPartsAgentsKind>;
|
|
2683
|
-
/**
|
|
2684
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
2685
|
-
*/
|
|
2686
|
-
export type StreamRunAgentPartsDataPart = {
|
|
2687
|
-
kind: StreamRunAgentPartsAgentsKind;
|
|
2688
|
-
data: {
|
|
2689
|
-
[k: string]: any;
|
|
2690
|
-
};
|
|
2691
|
-
metadata?: {
|
|
2692
|
-
[k: string]: any;
|
|
2693
|
-
} | undefined;
|
|
2694
|
-
};
|
|
2695
|
-
export declare const StreamRunAgentPartsKind: {
|
|
2696
|
-
readonly Text: "text";
|
|
2697
|
-
};
|
|
2698
|
-
export type StreamRunAgentPartsKind = ClosedEnum<typeof StreamRunAgentPartsKind>;
|
|
2699
|
-
/**
|
|
2700
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
2701
|
-
*/
|
|
2702
|
-
export type StreamRunAgentPartsTextPart = {
|
|
2703
|
-
kind: StreamRunAgentPartsKind;
|
|
2704
|
-
text: string;
|
|
2705
|
-
};
|
|
2706
|
-
export type DataParts = StreamRunAgentPartsToolCallPart | StreamRunAgentPartsTextPart | StreamRunAgentPartsDataPart | StreamRunAgentPartsFilePart | StreamRunAgentPartsToolResultPart;
|
|
2707
|
-
export type InputMessage = {
|
|
2708
|
-
messageId?: string | undefined;
|
|
2709
|
-
/**
|
|
2710
|
-
* Extended A2A message role
|
|
2711
|
-
*/
|
|
2712
|
-
role: DataRole;
|
|
2713
|
-
parts: Array<StreamRunAgentPartsToolCallPart | StreamRunAgentPartsTextPart | StreamRunAgentPartsDataPart | StreamRunAgentPartsFilePart | StreamRunAgentPartsToolResultPart>;
|
|
2714
|
-
metadata?: {
|
|
2715
|
-
[k: string]: any;
|
|
2716
|
-
} | undefined;
|
|
2717
|
-
};
|
|
2718
|
-
/**
|
|
2719
|
-
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
2359
|
+
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
2720
2360
|
*/
|
|
2721
2361
|
export declare const DataToolApprovalRequired: {
|
|
2722
2362
|
readonly All: "all";
|
|
@@ -2841,6 +2481,7 @@ export type DataSettings = {
|
|
|
2841
2481
|
guardrails?: Array<DataGuardrails> | undefined;
|
|
2842
2482
|
};
|
|
2843
2483
|
export type StreamRunAgentDataData = {
|
|
2484
|
+
workflowRunId: string;
|
|
2844
2485
|
integrationId?: string | undefined;
|
|
2845
2486
|
inputMessage: InputMessage;
|
|
2846
2487
|
modelId: string;
|
|
@@ -3349,9 +2990,9 @@ export declare const StreamRunAgentRole$outboundSchema: z.ZodType<StreamRunAgent
|
|
|
3349
2990
|
export declare function streamRunAgentRoleToJSON(streamRunAgentRole: StreamRunAgentRole): string;
|
|
3350
2991
|
export declare function streamRunAgentRoleFromJSON(jsonString: string): SafeParseResult<StreamRunAgentRole, SDKValidationError>;
|
|
3351
2992
|
/** @internal */
|
|
3352
|
-
export declare const
|
|
2993
|
+
export declare const StreamRunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartAgentsKind>;
|
|
3353
2994
|
/** @internal */
|
|
3354
|
-
export declare const
|
|
2995
|
+
export declare const StreamRunAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartAgentsKind>;
|
|
3355
2996
|
/** @internal */
|
|
3356
2997
|
export declare const StreamRunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
3357
2998
|
/** @internal */
|
|
@@ -3368,9 +3009,9 @@ export declare const StreamRunAgentPublicMessagePartToolResultPart$outboundSchem
|
|
|
3368
3009
|
export declare function streamRunAgentPublicMessagePartToolResultPartToJSON(streamRunAgentPublicMessagePartToolResultPart: StreamRunAgentPublicMessagePartToolResultPart): string;
|
|
3369
3010
|
export declare function streamRunAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPublicMessagePartToolResultPart, SDKValidationError>;
|
|
3370
3011
|
/** @internal */
|
|
3371
|
-
export declare const
|
|
3012
|
+
export declare const StreamRunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartKind>;
|
|
3372
3013
|
/** @internal */
|
|
3373
|
-
export declare const
|
|
3014
|
+
export declare const StreamRunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartKind>;
|
|
3374
3015
|
/** @internal */
|
|
3375
3016
|
export declare const StreamRunAgentFileFileInURIFormat$inboundSchema: z.ZodType<StreamRunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
3376
3017
|
/** @internal */
|
|
@@ -3418,24 +3059,9 @@ export declare const StreamRunAgentPublicMessagePartFilePart$outboundSchema: z.Z
|
|
|
3418
3059
|
export declare function streamRunAgentPublicMessagePartFilePartToJSON(streamRunAgentPublicMessagePartFilePart: StreamRunAgentPublicMessagePartFilePart): string;
|
|
3419
3060
|
export declare function streamRunAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
3420
3061
|
/** @internal */
|
|
3421
|
-
export declare const StreamRunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartKind>;
|
|
3422
|
-
/** @internal */
|
|
3423
|
-
export declare const StreamRunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartKind>;
|
|
3424
|
-
/** @internal */
|
|
3425
|
-
export declare const StreamRunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
|
|
3426
|
-
/** @internal */
|
|
3427
|
-
export type StreamRunAgentPublicMessagePartTextPart$Outbound = {
|
|
3428
|
-
kind: string;
|
|
3429
|
-
text: string;
|
|
3430
|
-
};
|
|
3431
|
-
/** @internal */
|
|
3432
|
-
export declare const StreamRunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<StreamRunAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePartTextPart>;
|
|
3433
|
-
export declare function streamRunAgentPublicMessagePartTextPartToJSON(streamRunAgentPublicMessagePartTextPart: StreamRunAgentPublicMessagePartTextPart): string;
|
|
3434
|
-
export declare function streamRunAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPublicMessagePartTextPart, SDKValidationError>;
|
|
3435
|
-
/** @internal */
|
|
3436
3062
|
export declare const StreamRunAgentPublicMessagePart$inboundSchema: z.ZodType<StreamRunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
3437
3063
|
/** @internal */
|
|
3438
|
-
export type StreamRunAgentPublicMessagePart$Outbound =
|
|
3064
|
+
export type StreamRunAgentPublicMessagePart$Outbound = components.TextPart$Outbound | StreamRunAgentPublicMessagePartFilePart$Outbound | StreamRunAgentPublicMessagePartToolResultPart$Outbound;
|
|
3439
3065
|
/** @internal */
|
|
3440
3066
|
export declare const StreamRunAgentPublicMessagePart$outboundSchema: z.ZodType<StreamRunAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePart>;
|
|
3441
3067
|
export declare function streamRunAgentPublicMessagePartToJSON(streamRunAgentPublicMessagePart: StreamRunAgentPublicMessagePart): string;
|
|
@@ -3446,7 +3072,7 @@ export declare const StreamRunAgentA2AMessage$inboundSchema: z.ZodType<StreamRun
|
|
|
3446
3072
|
export type StreamRunAgentA2AMessage$Outbound = {
|
|
3447
3073
|
messageId?: string | undefined;
|
|
3448
3074
|
role: string | string;
|
|
3449
|
-
parts: Array<
|
|
3075
|
+
parts: Array<components.TextPart$Outbound | StreamRunAgentPublicMessagePartFilePart$Outbound | StreamRunAgentPublicMessagePartToolResultPart$Outbound>;
|
|
3450
3076
|
};
|
|
3451
3077
|
/** @internal */
|
|
3452
3078
|
export declare const StreamRunAgentA2AMessage$outboundSchema: z.ZodType<StreamRunAgentA2AMessage$Outbound, z.ZodTypeDef, StreamRunAgentA2AMessage>;
|
|
@@ -4161,6 +3787,7 @@ export type StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody15Data
|
|
|
4161
3787
|
action_type: string;
|
|
4162
3788
|
tool_execution_context: StreamRunAgentDataToolExecutionContext$Outbound;
|
|
4163
3789
|
responseId?: string | undefined;
|
|
3790
|
+
workflowRunId: string;
|
|
4164
3791
|
};
|
|
4165
3792
|
/** @internal */
|
|
4166
3793
|
export declare const StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody15Data$outboundSchema: z.ZodType<StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound, z.ZodTypeDef, StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody15Data>;
|
|
@@ -4221,6 +3848,7 @@ export type StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody14Data
|
|
|
4221
3848
|
action_type: string;
|
|
4222
3849
|
tool_execution_context: DataToolExecutionContext$Outbound;
|
|
4223
3850
|
responseId?: string | undefined;
|
|
3851
|
+
workflowRunId: string;
|
|
4224
3852
|
};
|
|
4225
3853
|
/** @internal */
|
|
4226
3854
|
export declare const StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody14Data$outboundSchema: z.ZodType<StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound, z.ZodTypeDef, StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody14Data>;
|
|
@@ -4286,6 +3914,7 @@ export type StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody13Data
|
|
|
4286
3914
|
};
|
|
4287
3915
|
tool_execution_context: ToolExecutionContext$Outbound;
|
|
4288
3916
|
responseId?: string | undefined;
|
|
3917
|
+
workflowRunId: string;
|
|
4289
3918
|
};
|
|
4290
3919
|
/** @internal */
|
|
4291
3920
|
export declare const StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody13Data$outboundSchema: z.ZodType<StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound, z.ZodTypeDef, StreamRunAgentDataAgentsResponse200TextEventStreamResponseBody13Data>;
|
|
@@ -4312,135 +3941,19 @@ export declare const StreamRunAgentDataAgentsResponseRole$inboundSchema: z.ZodNa
|
|
|
4312
3941
|
/** @internal */
|
|
4313
3942
|
export declare const StreamRunAgentDataAgentsResponseRole$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentDataAgentsResponseRole>;
|
|
4314
3943
|
/** @internal */
|
|
4315
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
4316
|
-
/** @internal */
|
|
4317
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
4318
|
-
/** @internal */
|
|
4319
|
-
export declare const StreamRunAgentPartsAgentsResponse200ToolResultPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200ToolResultPart, z.ZodTypeDef, unknown>;
|
|
4320
|
-
/** @internal */
|
|
4321
|
-
export type StreamRunAgentPartsAgentsResponse200ToolResultPart$Outbound = {
|
|
4322
|
-
kind: string;
|
|
4323
|
-
tool_call_id: string;
|
|
4324
|
-
result?: any | undefined;
|
|
4325
|
-
metadata?: {
|
|
4326
|
-
[k: string]: any;
|
|
4327
|
-
} | undefined;
|
|
4328
|
-
};
|
|
4329
|
-
/** @internal */
|
|
4330
|
-
export declare const StreamRunAgentPartsAgentsResponse200ToolResultPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200ToolResultPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponse200ToolResultPart>;
|
|
4331
|
-
export declare function streamRunAgentPartsAgentsResponse200ToolResultPartToJSON(streamRunAgentPartsAgentsResponse200ToolResultPart: StreamRunAgentPartsAgentsResponse200ToolResultPart): string;
|
|
4332
|
-
export declare function streamRunAgentPartsAgentsResponse200ToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponse200ToolResultPart, SDKValidationError>;
|
|
4333
|
-
/** @internal */
|
|
4334
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
4335
|
-
/** @internal */
|
|
4336
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
4337
|
-
/** @internal */
|
|
4338
|
-
export declare const StreamRunAgentPartsAgentsResponse200ToolCallPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200ToolCallPart, z.ZodTypeDef, unknown>;
|
|
4339
|
-
/** @internal */
|
|
4340
|
-
export type StreamRunAgentPartsAgentsResponse200ToolCallPart$Outbound = {
|
|
4341
|
-
kind: string;
|
|
4342
|
-
tool_name: string;
|
|
4343
|
-
tool_call_id: string;
|
|
4344
|
-
arguments: {
|
|
4345
|
-
[k: string]: any;
|
|
4346
|
-
};
|
|
4347
|
-
metadata?: {
|
|
4348
|
-
[k: string]: any;
|
|
4349
|
-
} | undefined;
|
|
4350
|
-
};
|
|
4351
|
-
/** @internal */
|
|
4352
|
-
export declare const StreamRunAgentPartsAgentsResponse200ToolCallPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200ToolCallPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponse200ToolCallPart>;
|
|
4353
|
-
export declare function streamRunAgentPartsAgentsResponse200ToolCallPartToJSON(streamRunAgentPartsAgentsResponse200ToolCallPart: StreamRunAgentPartsAgentsResponse200ToolCallPart): string;
|
|
4354
|
-
export declare function streamRunAgentPartsAgentsResponse200ToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponse200ToolCallPart, SDKValidationError>;
|
|
4355
|
-
/** @internal */
|
|
4356
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
4357
|
-
/** @internal */
|
|
4358
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
4359
|
-
/** @internal */
|
|
4360
|
-
export declare const StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat$inboundSchema: z.ZodType<StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
4361
|
-
/** @internal */
|
|
4362
|
-
export type StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound = {
|
|
4363
|
-
uri: string;
|
|
4364
|
-
mimeType?: string | undefined;
|
|
4365
|
-
name?: string | undefined;
|
|
4366
|
-
};
|
|
4367
|
-
/** @internal */
|
|
4368
|
-
export declare const StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat$outboundSchema: z.ZodType<StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat>;
|
|
4369
|
-
export declare function streamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormatToJSON(streamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat: StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat): string;
|
|
4370
|
-
export declare function streamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat, SDKValidationError>;
|
|
4371
|
-
/** @internal */
|
|
4372
|
-
export declare const StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat$inboundSchema: z.ZodType<StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat, z.ZodTypeDef, unknown>;
|
|
4373
|
-
/** @internal */
|
|
4374
|
-
export type StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound = {
|
|
4375
|
-
bytes: string;
|
|
4376
|
-
mimeType?: string | undefined;
|
|
4377
|
-
name?: string | undefined;
|
|
4378
|
-
};
|
|
4379
|
-
/** @internal */
|
|
4380
|
-
export declare const StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat$outboundSchema: z.ZodType<StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat>;
|
|
4381
|
-
export declare function streamRunAgentFileAgentsResponse200TextEventStreamBinaryFormatToJSON(streamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat: StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat): string;
|
|
4382
|
-
export declare function streamRunAgentFileAgentsResponse200TextEventStreamBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat, SDKValidationError>;
|
|
4383
|
-
/** @internal */
|
|
4384
|
-
export declare const StreamRunAgentPartsAgentsResponse200File$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200File, z.ZodTypeDef, unknown>;
|
|
4385
|
-
/** @internal */
|
|
4386
|
-
export type StreamRunAgentPartsAgentsResponse200File$Outbound = StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound | StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound;
|
|
4387
|
-
/** @internal */
|
|
4388
|
-
export declare const StreamRunAgentPartsAgentsResponse200File$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200File$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponse200File>;
|
|
4389
|
-
export declare function streamRunAgentPartsAgentsResponse200FileToJSON(streamRunAgentPartsAgentsResponse200File: StreamRunAgentPartsAgentsResponse200File): string;
|
|
4390
|
-
export declare function streamRunAgentPartsAgentsResponse200FileFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponse200File, SDKValidationError>;
|
|
4391
|
-
/** @internal */
|
|
4392
|
-
export declare const StreamRunAgentPartsAgentsResponse200FilePart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200FilePart, z.ZodTypeDef, unknown>;
|
|
4393
|
-
/** @internal */
|
|
4394
|
-
export type StreamRunAgentPartsAgentsResponse200FilePart$Outbound = {
|
|
4395
|
-
kind: string;
|
|
4396
|
-
file: StreamRunAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound | StreamRunAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound;
|
|
4397
|
-
metadata?: {
|
|
4398
|
-
[k: string]: any;
|
|
4399
|
-
} | undefined;
|
|
4400
|
-
};
|
|
4401
|
-
/** @internal */
|
|
4402
|
-
export declare const StreamRunAgentPartsAgentsResponse200FilePart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200FilePart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponse200FilePart>;
|
|
4403
|
-
export declare function streamRunAgentPartsAgentsResponse200FilePartToJSON(streamRunAgentPartsAgentsResponse200FilePart: StreamRunAgentPartsAgentsResponse200FilePart): string;
|
|
4404
|
-
export declare function streamRunAgentPartsAgentsResponse200FilePartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponse200FilePart, SDKValidationError>;
|
|
4405
|
-
/** @internal */
|
|
4406
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
4407
|
-
/** @internal */
|
|
4408
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
4409
|
-
/** @internal */
|
|
4410
|
-
export declare const StreamRunAgentPartsAgentsResponse200DataPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200DataPart, z.ZodTypeDef, unknown>;
|
|
4411
|
-
/** @internal */
|
|
4412
|
-
export type StreamRunAgentPartsAgentsResponse200DataPart$Outbound = {
|
|
4413
|
-
kind: string;
|
|
4414
|
-
data: {
|
|
4415
|
-
[k: string]: any;
|
|
4416
|
-
};
|
|
4417
|
-
metadata?: {
|
|
4418
|
-
[k: string]: any;
|
|
4419
|
-
} | undefined;
|
|
4420
|
-
};
|
|
4421
|
-
/** @internal */
|
|
4422
|
-
export declare const StreamRunAgentPartsAgentsResponse200DataPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200DataPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponse200DataPart>;
|
|
4423
|
-
export declare function streamRunAgentPartsAgentsResponse200DataPartToJSON(streamRunAgentPartsAgentsResponse200DataPart: StreamRunAgentPartsAgentsResponse200DataPart): string;
|
|
4424
|
-
export declare function streamRunAgentPartsAgentsResponse200DataPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponse200DataPart, SDKValidationError>;
|
|
4425
|
-
/** @internal */
|
|
4426
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
4427
|
-
/** @internal */
|
|
4428
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
4429
|
-
/** @internal */
|
|
4430
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200TextPart, z.ZodTypeDef, unknown>;
|
|
4431
|
-
/** @internal */
|
|
4432
|
-
export type StreamRunAgentPartsAgentsResponse200TextPart$Outbound = {
|
|
4433
|
-
kind: string;
|
|
4434
|
-
text: string;
|
|
4435
|
-
};
|
|
4436
|
-
/** @internal */
|
|
4437
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponse200TextPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponse200TextPart>;
|
|
4438
|
-
export declare function streamRunAgentPartsAgentsResponse200TextPartToJSON(streamRunAgentPartsAgentsResponse200TextPart: StreamRunAgentPartsAgentsResponse200TextPart): string;
|
|
4439
|
-
export declare function streamRunAgentPartsAgentsResponse200TextPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponse200TextPart, SDKValidationError>;
|
|
4440
|
-
/** @internal */
|
|
4441
3944
|
export declare const StreamRunAgentDataAgentsResponseParts$inboundSchema: z.ZodType<StreamRunAgentDataAgentsResponseParts, z.ZodTypeDef, unknown>;
|
|
4442
3945
|
/** @internal */
|
|
4443
|
-
export type StreamRunAgentDataAgentsResponseParts$Outbound =
|
|
3946
|
+
export type StreamRunAgentDataAgentsResponseParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
3947
|
+
kind: "tool_call";
|
|
3948
|
+
}) | (components.TextPart$Outbound & {
|
|
3949
|
+
kind: "text";
|
|
3950
|
+
}) | (components.DataPart$Outbound & {
|
|
3951
|
+
kind: "data";
|
|
3952
|
+
}) | (components.FilePart$Outbound & {
|
|
3953
|
+
kind: "file";
|
|
3954
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
3955
|
+
kind: "tool_result";
|
|
3956
|
+
});
|
|
4444
3957
|
/** @internal */
|
|
4445
3958
|
export declare const StreamRunAgentDataAgentsResponseParts$outboundSchema: z.ZodType<StreamRunAgentDataAgentsResponseParts$Outbound, z.ZodTypeDef, StreamRunAgentDataAgentsResponseParts>;
|
|
4446
3959
|
export declare function streamRunAgentDataAgentsResponsePartsToJSON(streamRunAgentDataAgentsResponseParts: StreamRunAgentDataAgentsResponseParts): string;
|
|
@@ -4451,7 +3964,17 @@ export declare const DataMessage$inboundSchema: z.ZodType<DataMessage, z.ZodType
|
|
|
4451
3964
|
export type DataMessage$Outbound = {
|
|
4452
3965
|
messageId?: string | undefined;
|
|
4453
3966
|
role: string;
|
|
4454
|
-
parts: Array<
|
|
3967
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
3968
|
+
kind: "tool_call";
|
|
3969
|
+
}) | (components.TextPart$Outbound & {
|
|
3970
|
+
kind: "text";
|
|
3971
|
+
}) | (components.DataPart$Outbound & {
|
|
3972
|
+
kind: "data";
|
|
3973
|
+
}) | (components.FilePart$Outbound & {
|
|
3974
|
+
kind: "file";
|
|
3975
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
3976
|
+
kind: "tool_result";
|
|
3977
|
+
})>;
|
|
4455
3978
|
metadata?: {
|
|
4456
3979
|
[k: string]: any;
|
|
4457
3980
|
} | undefined;
|
|
@@ -4608,6 +4131,7 @@ export type StreamRunAgentDataAgentsResponse200TextEventStreamResponseBodyData$O
|
|
|
4608
4131
|
} | undefined;
|
|
4609
4132
|
review_source?: string | undefined;
|
|
4610
4133
|
reviewed_by_id?: string | undefined;
|
|
4134
|
+
workflowRunId: string;
|
|
4611
4135
|
};
|
|
4612
4136
|
/** @internal */
|
|
4613
4137
|
export declare const StreamRunAgentDataAgentsResponse200TextEventStreamResponseBodyData$outboundSchema: z.ZodType<StreamRunAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outbound, z.ZodTypeDef, StreamRunAgentDataAgentsResponse200TextEventStreamResponseBodyData>;
|
|
@@ -4700,6 +4224,7 @@ export type StreamRunAgentDataAgentsResponse200Data$Outbound = {
|
|
|
4700
4224
|
error: string;
|
|
4701
4225
|
code: number;
|
|
4702
4226
|
responseId?: string | undefined;
|
|
4227
|
+
workflowRunId: string;
|
|
4703
4228
|
};
|
|
4704
4229
|
/** @internal */
|
|
4705
4230
|
export declare const StreamRunAgentDataAgentsResponse200Data$outboundSchema: z.ZodType<StreamRunAgentDataAgentsResponse200Data$Outbound, z.ZodTypeDef, StreamRunAgentDataAgentsResponse200Data>;
|
|
@@ -4726,135 +4251,19 @@ export declare const StreamRunAgentDataAgentsRole$inboundSchema: z.ZodNativeEnum
|
|
|
4726
4251
|
/** @internal */
|
|
4727
4252
|
export declare const StreamRunAgentDataAgentsRole$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentDataAgentsRole>;
|
|
4728
4253
|
/** @internal */
|
|
4729
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind>;
|
|
4730
|
-
/** @internal */
|
|
4731
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind>;
|
|
4732
|
-
/** @internal */
|
|
4733
|
-
export declare const StreamRunAgentPartsAgentsResponseToolResultPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseToolResultPart, z.ZodTypeDef, unknown>;
|
|
4734
|
-
/** @internal */
|
|
4735
|
-
export type StreamRunAgentPartsAgentsResponseToolResultPart$Outbound = {
|
|
4736
|
-
kind: string;
|
|
4737
|
-
tool_call_id: string;
|
|
4738
|
-
result?: any | undefined;
|
|
4739
|
-
metadata?: {
|
|
4740
|
-
[k: string]: any;
|
|
4741
|
-
} | undefined;
|
|
4742
|
-
};
|
|
4743
|
-
/** @internal */
|
|
4744
|
-
export declare const StreamRunAgentPartsAgentsResponseToolResultPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseToolResultPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponseToolResultPart>;
|
|
4745
|
-
export declare function streamRunAgentPartsAgentsResponseToolResultPartToJSON(streamRunAgentPartsAgentsResponseToolResultPart: StreamRunAgentPartsAgentsResponseToolResultPart): string;
|
|
4746
|
-
export declare function streamRunAgentPartsAgentsResponseToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponseToolResultPart, SDKValidationError>;
|
|
4747
|
-
/** @internal */
|
|
4748
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind>;
|
|
4749
|
-
/** @internal */
|
|
4750
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind>;
|
|
4751
|
-
/** @internal */
|
|
4752
|
-
export declare const StreamRunAgentPartsAgentsResponseToolCallPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseToolCallPart, z.ZodTypeDef, unknown>;
|
|
4753
|
-
/** @internal */
|
|
4754
|
-
export type StreamRunAgentPartsAgentsResponseToolCallPart$Outbound = {
|
|
4755
|
-
kind: string;
|
|
4756
|
-
tool_name: string;
|
|
4757
|
-
tool_call_id: string;
|
|
4758
|
-
arguments: {
|
|
4759
|
-
[k: string]: any;
|
|
4760
|
-
};
|
|
4761
|
-
metadata?: {
|
|
4762
|
-
[k: string]: any;
|
|
4763
|
-
} | undefined;
|
|
4764
|
-
};
|
|
4765
|
-
/** @internal */
|
|
4766
|
-
export declare const StreamRunAgentPartsAgentsResponseToolCallPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseToolCallPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponseToolCallPart>;
|
|
4767
|
-
export declare function streamRunAgentPartsAgentsResponseToolCallPartToJSON(streamRunAgentPartsAgentsResponseToolCallPart: StreamRunAgentPartsAgentsResponseToolCallPart): string;
|
|
4768
|
-
export declare function streamRunAgentPartsAgentsResponseToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponseToolCallPart, SDKValidationError>;
|
|
4769
|
-
/** @internal */
|
|
4770
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind>;
|
|
4771
|
-
/** @internal */
|
|
4772
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind>;
|
|
4773
|
-
/** @internal */
|
|
4774
|
-
export declare const StreamRunAgentFileAgentsResponse200FileInURIFormat$inboundSchema: z.ZodType<StreamRunAgentFileAgentsResponse200FileInURIFormat, z.ZodTypeDef, unknown>;
|
|
4775
|
-
/** @internal */
|
|
4776
|
-
export type StreamRunAgentFileAgentsResponse200FileInURIFormat$Outbound = {
|
|
4777
|
-
uri: string;
|
|
4778
|
-
mimeType?: string | undefined;
|
|
4779
|
-
name?: string | undefined;
|
|
4780
|
-
};
|
|
4781
|
-
/** @internal */
|
|
4782
|
-
export declare const StreamRunAgentFileAgentsResponse200FileInURIFormat$outboundSchema: z.ZodType<StreamRunAgentFileAgentsResponse200FileInURIFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileAgentsResponse200FileInURIFormat>;
|
|
4783
|
-
export declare function streamRunAgentFileAgentsResponse200FileInURIFormatToJSON(streamRunAgentFileAgentsResponse200FileInURIFormat: StreamRunAgentFileAgentsResponse200FileInURIFormat): string;
|
|
4784
|
-
export declare function streamRunAgentFileAgentsResponse200FileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileAgentsResponse200FileInURIFormat, SDKValidationError>;
|
|
4785
|
-
/** @internal */
|
|
4786
|
-
export declare const StreamRunAgentFileAgentsResponse200BinaryFormat$inboundSchema: z.ZodType<StreamRunAgentFileAgentsResponse200BinaryFormat, z.ZodTypeDef, unknown>;
|
|
4787
|
-
/** @internal */
|
|
4788
|
-
export type StreamRunAgentFileAgentsResponse200BinaryFormat$Outbound = {
|
|
4789
|
-
bytes: string;
|
|
4790
|
-
mimeType?: string | undefined;
|
|
4791
|
-
name?: string | undefined;
|
|
4792
|
-
};
|
|
4793
|
-
/** @internal */
|
|
4794
|
-
export declare const StreamRunAgentFileAgentsResponse200BinaryFormat$outboundSchema: z.ZodType<StreamRunAgentFileAgentsResponse200BinaryFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileAgentsResponse200BinaryFormat>;
|
|
4795
|
-
export declare function streamRunAgentFileAgentsResponse200BinaryFormatToJSON(streamRunAgentFileAgentsResponse200BinaryFormat: StreamRunAgentFileAgentsResponse200BinaryFormat): string;
|
|
4796
|
-
export declare function streamRunAgentFileAgentsResponse200BinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileAgentsResponse200BinaryFormat, SDKValidationError>;
|
|
4797
|
-
/** @internal */
|
|
4798
|
-
export declare const StreamRunAgentPartsAgentsResponseFile$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseFile, z.ZodTypeDef, unknown>;
|
|
4799
|
-
/** @internal */
|
|
4800
|
-
export type StreamRunAgentPartsAgentsResponseFile$Outbound = StreamRunAgentFileAgentsResponse200BinaryFormat$Outbound | StreamRunAgentFileAgentsResponse200FileInURIFormat$Outbound;
|
|
4801
|
-
/** @internal */
|
|
4802
|
-
export declare const StreamRunAgentPartsAgentsResponseFile$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseFile$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponseFile>;
|
|
4803
|
-
export declare function streamRunAgentPartsAgentsResponseFileToJSON(streamRunAgentPartsAgentsResponseFile: StreamRunAgentPartsAgentsResponseFile): string;
|
|
4804
|
-
export declare function streamRunAgentPartsAgentsResponseFileFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponseFile, SDKValidationError>;
|
|
4805
|
-
/** @internal */
|
|
4806
|
-
export declare const StreamRunAgentPartsAgentsResponseFilePart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseFilePart, z.ZodTypeDef, unknown>;
|
|
4807
|
-
/** @internal */
|
|
4808
|
-
export type StreamRunAgentPartsAgentsResponseFilePart$Outbound = {
|
|
4809
|
-
kind: string;
|
|
4810
|
-
file: StreamRunAgentFileAgentsResponse200BinaryFormat$Outbound | StreamRunAgentFileAgentsResponse200FileInURIFormat$Outbound;
|
|
4811
|
-
metadata?: {
|
|
4812
|
-
[k: string]: any;
|
|
4813
|
-
} | undefined;
|
|
4814
|
-
};
|
|
4815
|
-
/** @internal */
|
|
4816
|
-
export declare const StreamRunAgentPartsAgentsResponseFilePart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseFilePart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponseFilePart>;
|
|
4817
|
-
export declare function streamRunAgentPartsAgentsResponseFilePartToJSON(streamRunAgentPartsAgentsResponseFilePart: StreamRunAgentPartsAgentsResponseFilePart): string;
|
|
4818
|
-
export declare function streamRunAgentPartsAgentsResponseFilePartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponseFilePart, SDKValidationError>;
|
|
4819
|
-
/** @internal */
|
|
4820
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind>;
|
|
4821
|
-
/** @internal */
|
|
4822
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind>;
|
|
4823
|
-
/** @internal */
|
|
4824
|
-
export declare const StreamRunAgentPartsAgentsResponseDataPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseDataPart, z.ZodTypeDef, unknown>;
|
|
4825
|
-
/** @internal */
|
|
4826
|
-
export type StreamRunAgentPartsAgentsResponseDataPart$Outbound = {
|
|
4827
|
-
kind: string;
|
|
4828
|
-
data: {
|
|
4829
|
-
[k: string]: any;
|
|
4830
|
-
};
|
|
4831
|
-
metadata?: {
|
|
4832
|
-
[k: string]: any;
|
|
4833
|
-
} | undefined;
|
|
4834
|
-
};
|
|
4835
|
-
/** @internal */
|
|
4836
|
-
export declare const StreamRunAgentPartsAgentsResponseDataPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseDataPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponseDataPart>;
|
|
4837
|
-
export declare function streamRunAgentPartsAgentsResponseDataPartToJSON(streamRunAgentPartsAgentsResponseDataPart: StreamRunAgentPartsAgentsResponseDataPart): string;
|
|
4838
|
-
export declare function streamRunAgentPartsAgentsResponseDataPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponseDataPart, SDKValidationError>;
|
|
4839
|
-
/** @internal */
|
|
4840
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind>;
|
|
4841
|
-
/** @internal */
|
|
4842
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind>;
|
|
4843
|
-
/** @internal */
|
|
4844
|
-
export declare const StreamRunAgentPartsAgentsResponseTextPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseTextPart, z.ZodTypeDef, unknown>;
|
|
4845
|
-
/** @internal */
|
|
4846
|
-
export type StreamRunAgentPartsAgentsResponseTextPart$Outbound = {
|
|
4847
|
-
kind: string;
|
|
4848
|
-
text: string;
|
|
4849
|
-
};
|
|
4850
|
-
/** @internal */
|
|
4851
|
-
export declare const StreamRunAgentPartsAgentsResponseTextPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsResponseTextPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsResponseTextPart>;
|
|
4852
|
-
export declare function streamRunAgentPartsAgentsResponseTextPartToJSON(streamRunAgentPartsAgentsResponseTextPart: StreamRunAgentPartsAgentsResponseTextPart): string;
|
|
4853
|
-
export declare function streamRunAgentPartsAgentsResponseTextPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsResponseTextPart, SDKValidationError>;
|
|
4854
|
-
/** @internal */
|
|
4855
4254
|
export declare const StreamRunAgentDataAgentsParts$inboundSchema: z.ZodType<StreamRunAgentDataAgentsParts, z.ZodTypeDef, unknown>;
|
|
4856
4255
|
/** @internal */
|
|
4857
|
-
export type StreamRunAgentDataAgentsParts$Outbound =
|
|
4256
|
+
export type StreamRunAgentDataAgentsParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
4257
|
+
kind: "tool_call";
|
|
4258
|
+
}) | (components.TextPart$Outbound & {
|
|
4259
|
+
kind: "text";
|
|
4260
|
+
}) | (components.DataPart$Outbound & {
|
|
4261
|
+
kind: "data";
|
|
4262
|
+
}) | (components.FilePart$Outbound & {
|
|
4263
|
+
kind: "file";
|
|
4264
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
4265
|
+
kind: "tool_result";
|
|
4266
|
+
});
|
|
4858
4267
|
/** @internal */
|
|
4859
4268
|
export declare const StreamRunAgentDataAgentsParts$outboundSchema: z.ZodType<StreamRunAgentDataAgentsParts$Outbound, z.ZodTypeDef, StreamRunAgentDataAgentsParts>;
|
|
4860
4269
|
export declare function streamRunAgentDataAgentsPartsToJSON(streamRunAgentDataAgentsParts: StreamRunAgentDataAgentsParts): string;
|
|
@@ -4865,7 +4274,17 @@ export declare const LastMessageFull$inboundSchema: z.ZodType<LastMessageFull, z
|
|
|
4865
4274
|
export type LastMessageFull$Outbound = {
|
|
4866
4275
|
messageId?: string | undefined;
|
|
4867
4276
|
role: string;
|
|
4868
|
-
parts: Array<
|
|
4277
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
4278
|
+
kind: "tool_call";
|
|
4279
|
+
}) | (components.TextPart$Outbound & {
|
|
4280
|
+
kind: "text";
|
|
4281
|
+
}) | (components.DataPart$Outbound & {
|
|
4282
|
+
kind: "data";
|
|
4283
|
+
}) | (components.FilePart$Outbound & {
|
|
4284
|
+
kind: "file";
|
|
4285
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
4286
|
+
kind: "tool_result";
|
|
4287
|
+
})>;
|
|
4869
4288
|
metadata?: {
|
|
4870
4289
|
[k: string]: any;
|
|
4871
4290
|
} | undefined;
|
|
@@ -4952,6 +4371,7 @@ export type StreamRunAgentDataAgentsResponseData$Outbound = {
|
|
|
4952
4371
|
finish_reason: string;
|
|
4953
4372
|
pending_tool_calls?: Array<PendingToolCalls$Outbound> | undefined;
|
|
4954
4373
|
usage?: StreamRunAgentDataUsage$Outbound | undefined;
|
|
4374
|
+
workflowRunId: string;
|
|
4955
4375
|
responseId?: string | undefined;
|
|
4956
4376
|
};
|
|
4957
4377
|
/** @internal */
|
|
@@ -4979,135 +4399,19 @@ export declare const StreamRunAgentDataRole$inboundSchema: z.ZodNativeEnum<typeo
|
|
|
4979
4399
|
/** @internal */
|
|
4980
4400
|
export declare const StreamRunAgentDataRole$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentDataRole>;
|
|
4981
4401
|
/** @internal */
|
|
4982
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind>;
|
|
4983
|
-
/** @internal */
|
|
4984
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind>;
|
|
4985
|
-
/** @internal */
|
|
4986
|
-
export declare const StreamRunAgentPartsAgentsToolResultPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsToolResultPart, z.ZodTypeDef, unknown>;
|
|
4987
|
-
/** @internal */
|
|
4988
|
-
export type StreamRunAgentPartsAgentsToolResultPart$Outbound = {
|
|
4989
|
-
kind: string;
|
|
4990
|
-
tool_call_id: string;
|
|
4991
|
-
result?: any | undefined;
|
|
4992
|
-
metadata?: {
|
|
4993
|
-
[k: string]: any;
|
|
4994
|
-
} | undefined;
|
|
4995
|
-
};
|
|
4996
|
-
/** @internal */
|
|
4997
|
-
export declare const StreamRunAgentPartsAgentsToolResultPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsToolResultPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsToolResultPart>;
|
|
4998
|
-
export declare function streamRunAgentPartsAgentsToolResultPartToJSON(streamRunAgentPartsAgentsToolResultPart: StreamRunAgentPartsAgentsToolResultPart): string;
|
|
4999
|
-
export declare function streamRunAgentPartsAgentsToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsToolResultPart, SDKValidationError>;
|
|
5000
|
-
/** @internal */
|
|
5001
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
5002
|
-
/** @internal */
|
|
5003
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
5004
|
-
/** @internal */
|
|
5005
|
-
export declare const StreamRunAgentPartsAgentsToolCallPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsToolCallPart, z.ZodTypeDef, unknown>;
|
|
5006
|
-
/** @internal */
|
|
5007
|
-
export type StreamRunAgentPartsAgentsToolCallPart$Outbound = {
|
|
5008
|
-
kind: string;
|
|
5009
|
-
tool_name: string;
|
|
5010
|
-
tool_call_id: string;
|
|
5011
|
-
arguments: {
|
|
5012
|
-
[k: string]: any;
|
|
5013
|
-
};
|
|
5014
|
-
metadata?: {
|
|
5015
|
-
[k: string]: any;
|
|
5016
|
-
} | undefined;
|
|
5017
|
-
};
|
|
5018
|
-
/** @internal */
|
|
5019
|
-
export declare const StreamRunAgentPartsAgentsToolCallPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsToolCallPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsToolCallPart>;
|
|
5020
|
-
export declare function streamRunAgentPartsAgentsToolCallPartToJSON(streamRunAgentPartsAgentsToolCallPart: StreamRunAgentPartsAgentsToolCallPart): string;
|
|
5021
|
-
export declare function streamRunAgentPartsAgentsToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsToolCallPart, SDKValidationError>;
|
|
5022
|
-
/** @internal */
|
|
5023
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
5024
|
-
/** @internal */
|
|
5025
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
5026
|
-
/** @internal */
|
|
5027
|
-
export declare const StreamRunAgentFileAgentsResponseFileInURIFormat$inboundSchema: z.ZodType<StreamRunAgentFileAgentsResponseFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
5028
|
-
/** @internal */
|
|
5029
|
-
export type StreamRunAgentFileAgentsResponseFileInURIFormat$Outbound = {
|
|
5030
|
-
uri: string;
|
|
5031
|
-
mimeType?: string | undefined;
|
|
5032
|
-
name?: string | undefined;
|
|
5033
|
-
};
|
|
5034
|
-
/** @internal */
|
|
5035
|
-
export declare const StreamRunAgentFileAgentsResponseFileInURIFormat$outboundSchema: z.ZodType<StreamRunAgentFileAgentsResponseFileInURIFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileAgentsResponseFileInURIFormat>;
|
|
5036
|
-
export declare function streamRunAgentFileAgentsResponseFileInURIFormatToJSON(streamRunAgentFileAgentsResponseFileInURIFormat: StreamRunAgentFileAgentsResponseFileInURIFormat): string;
|
|
5037
|
-
export declare function streamRunAgentFileAgentsResponseFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileAgentsResponseFileInURIFormat, SDKValidationError>;
|
|
5038
|
-
/** @internal */
|
|
5039
|
-
export declare const StreamRunAgentFileAgentsResponseBinaryFormat$inboundSchema: z.ZodType<StreamRunAgentFileAgentsResponseBinaryFormat, z.ZodTypeDef, unknown>;
|
|
5040
|
-
/** @internal */
|
|
5041
|
-
export type StreamRunAgentFileAgentsResponseBinaryFormat$Outbound = {
|
|
5042
|
-
bytes: string;
|
|
5043
|
-
mimeType?: string | undefined;
|
|
5044
|
-
name?: string | undefined;
|
|
5045
|
-
};
|
|
5046
|
-
/** @internal */
|
|
5047
|
-
export declare const StreamRunAgentFileAgentsResponseBinaryFormat$outboundSchema: z.ZodType<StreamRunAgentFileAgentsResponseBinaryFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileAgentsResponseBinaryFormat>;
|
|
5048
|
-
export declare function streamRunAgentFileAgentsResponseBinaryFormatToJSON(streamRunAgentFileAgentsResponseBinaryFormat: StreamRunAgentFileAgentsResponseBinaryFormat): string;
|
|
5049
|
-
export declare function streamRunAgentFileAgentsResponseBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileAgentsResponseBinaryFormat, SDKValidationError>;
|
|
5050
|
-
/** @internal */
|
|
5051
|
-
export declare const StreamRunAgentPartsAgentsFile$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsFile, z.ZodTypeDef, unknown>;
|
|
5052
|
-
/** @internal */
|
|
5053
|
-
export type StreamRunAgentPartsAgentsFile$Outbound = StreamRunAgentFileAgentsResponseBinaryFormat$Outbound | StreamRunAgentFileAgentsResponseFileInURIFormat$Outbound;
|
|
5054
|
-
/** @internal */
|
|
5055
|
-
export declare const StreamRunAgentPartsAgentsFile$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsFile$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsFile>;
|
|
5056
|
-
export declare function streamRunAgentPartsAgentsFileToJSON(streamRunAgentPartsAgentsFile: StreamRunAgentPartsAgentsFile): string;
|
|
5057
|
-
export declare function streamRunAgentPartsAgentsFileFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsFile, SDKValidationError>;
|
|
5058
|
-
/** @internal */
|
|
5059
|
-
export declare const StreamRunAgentPartsAgentsFilePart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsFilePart, z.ZodTypeDef, unknown>;
|
|
5060
|
-
/** @internal */
|
|
5061
|
-
export type StreamRunAgentPartsAgentsFilePart$Outbound = {
|
|
5062
|
-
kind: string;
|
|
5063
|
-
file: StreamRunAgentFileAgentsResponseBinaryFormat$Outbound | StreamRunAgentFileAgentsResponseFileInURIFormat$Outbound;
|
|
5064
|
-
metadata?: {
|
|
5065
|
-
[k: string]: any;
|
|
5066
|
-
} | undefined;
|
|
5067
|
-
};
|
|
5068
|
-
/** @internal */
|
|
5069
|
-
export declare const StreamRunAgentPartsAgentsFilePart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsFilePart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsFilePart>;
|
|
5070
|
-
export declare function streamRunAgentPartsAgentsFilePartToJSON(streamRunAgentPartsAgentsFilePart: StreamRunAgentPartsAgentsFilePart): string;
|
|
5071
|
-
export declare function streamRunAgentPartsAgentsFilePartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsFilePart, SDKValidationError>;
|
|
5072
|
-
/** @internal */
|
|
5073
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
5074
|
-
/** @internal */
|
|
5075
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
5076
|
-
/** @internal */
|
|
5077
|
-
export declare const StreamRunAgentPartsAgentsDataPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsDataPart, z.ZodTypeDef, unknown>;
|
|
5078
|
-
/** @internal */
|
|
5079
|
-
export type StreamRunAgentPartsAgentsDataPart$Outbound = {
|
|
5080
|
-
kind: string;
|
|
5081
|
-
data: {
|
|
5082
|
-
[k: string]: any;
|
|
5083
|
-
};
|
|
5084
|
-
metadata?: {
|
|
5085
|
-
[k: string]: any;
|
|
5086
|
-
} | undefined;
|
|
5087
|
-
};
|
|
5088
|
-
/** @internal */
|
|
5089
|
-
export declare const StreamRunAgentPartsAgentsDataPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsDataPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsDataPart>;
|
|
5090
|
-
export declare function streamRunAgentPartsAgentsDataPartToJSON(streamRunAgentPartsAgentsDataPart: StreamRunAgentPartsAgentsDataPart): string;
|
|
5091
|
-
export declare function streamRunAgentPartsAgentsDataPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsDataPart, SDKValidationError>;
|
|
5092
|
-
/** @internal */
|
|
5093
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
5094
|
-
/** @internal */
|
|
5095
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
5096
|
-
/** @internal */
|
|
5097
|
-
export declare const StreamRunAgentPartsAgentsTextPart$inboundSchema: z.ZodType<StreamRunAgentPartsAgentsTextPart, z.ZodTypeDef, unknown>;
|
|
5098
|
-
/** @internal */
|
|
5099
|
-
export type StreamRunAgentPartsAgentsTextPart$Outbound = {
|
|
5100
|
-
kind: string;
|
|
5101
|
-
text: string;
|
|
5102
|
-
};
|
|
5103
|
-
/** @internal */
|
|
5104
|
-
export declare const StreamRunAgentPartsAgentsTextPart$outboundSchema: z.ZodType<StreamRunAgentPartsAgentsTextPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsAgentsTextPart>;
|
|
5105
|
-
export declare function streamRunAgentPartsAgentsTextPartToJSON(streamRunAgentPartsAgentsTextPart: StreamRunAgentPartsAgentsTextPart): string;
|
|
5106
|
-
export declare function streamRunAgentPartsAgentsTextPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsAgentsTextPart, SDKValidationError>;
|
|
5107
|
-
/** @internal */
|
|
5108
4402
|
export declare const StreamRunAgentDataParts$inboundSchema: z.ZodType<StreamRunAgentDataParts, z.ZodTypeDef, unknown>;
|
|
5109
4403
|
/** @internal */
|
|
5110
|
-
export type StreamRunAgentDataParts$Outbound =
|
|
4404
|
+
export type StreamRunAgentDataParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
4405
|
+
kind: "tool_call";
|
|
4406
|
+
}) | (components.TextPart$Outbound & {
|
|
4407
|
+
kind: "text";
|
|
4408
|
+
}) | (components.DataPart$Outbound & {
|
|
4409
|
+
kind: "data";
|
|
4410
|
+
}) | (components.FilePart$Outbound & {
|
|
4411
|
+
kind: "file";
|
|
4412
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
4413
|
+
kind: "tool_result";
|
|
4414
|
+
});
|
|
5111
4415
|
/** @internal */
|
|
5112
4416
|
export declare const StreamRunAgentDataParts$outboundSchema: z.ZodType<StreamRunAgentDataParts$Outbound, z.ZodTypeDef, StreamRunAgentDataParts>;
|
|
5113
4417
|
export declare function streamRunAgentDataPartsToJSON(streamRunAgentDataParts: StreamRunAgentDataParts): string;
|
|
@@ -5118,7 +4422,17 @@ export declare const MessageDifference$inboundSchema: z.ZodType<MessageDifferenc
|
|
|
5118
4422
|
export type MessageDifference$Outbound = {
|
|
5119
4423
|
messageId: string;
|
|
5120
4424
|
role: string;
|
|
5121
|
-
parts: Array<
|
|
4425
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
4426
|
+
kind: "tool_call";
|
|
4427
|
+
}) | (components.TextPart$Outbound & {
|
|
4428
|
+
kind: "text";
|
|
4429
|
+
}) | (components.DataPart$Outbound & {
|
|
4430
|
+
kind: "data";
|
|
4431
|
+
}) | (components.FilePart$Outbound & {
|
|
4432
|
+
kind: "file";
|
|
4433
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
4434
|
+
kind: "tool_result";
|
|
4435
|
+
})>;
|
|
5122
4436
|
metadata?: {
|
|
5123
4437
|
[k: string]: any;
|
|
5124
4438
|
} | undefined;
|
|
@@ -5347,135 +4661,19 @@ export declare const DataRole$inboundSchema: z.ZodNativeEnum<typeof DataRole>;
|
|
|
5347
4661
|
/** @internal */
|
|
5348
4662
|
export declare const DataRole$outboundSchema: z.ZodNativeEnum<typeof DataRole>;
|
|
5349
4663
|
/** @internal */
|
|
5350
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamKind>;
|
|
5351
|
-
/** @internal */
|
|
5352
|
-
export declare const StreamRunAgentPartsAgentsResponse200TextEventStreamKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200TextEventStreamKind>;
|
|
5353
|
-
/** @internal */
|
|
5354
|
-
export declare const StreamRunAgentPartsToolResultPart$inboundSchema: z.ZodType<StreamRunAgentPartsToolResultPart, z.ZodTypeDef, unknown>;
|
|
5355
|
-
/** @internal */
|
|
5356
|
-
export type StreamRunAgentPartsToolResultPart$Outbound = {
|
|
5357
|
-
kind: string;
|
|
5358
|
-
tool_call_id: string;
|
|
5359
|
-
result?: any | undefined;
|
|
5360
|
-
metadata?: {
|
|
5361
|
-
[k: string]: any;
|
|
5362
|
-
} | undefined;
|
|
5363
|
-
};
|
|
5364
|
-
/** @internal */
|
|
5365
|
-
export declare const StreamRunAgentPartsToolResultPart$outboundSchema: z.ZodType<StreamRunAgentPartsToolResultPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsToolResultPart>;
|
|
5366
|
-
export declare function streamRunAgentPartsToolResultPartToJSON(streamRunAgentPartsToolResultPart: StreamRunAgentPartsToolResultPart): string;
|
|
5367
|
-
export declare function streamRunAgentPartsToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsToolResultPart, SDKValidationError>;
|
|
5368
|
-
/** @internal */
|
|
5369
|
-
export declare const StreamRunAgentPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200Kind>;
|
|
5370
|
-
/** @internal */
|
|
5371
|
-
export declare const StreamRunAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponse200Kind>;
|
|
5372
|
-
/** @internal */
|
|
5373
|
-
export declare const StreamRunAgentPartsToolCallPart$inboundSchema: z.ZodType<StreamRunAgentPartsToolCallPart, z.ZodTypeDef, unknown>;
|
|
5374
|
-
/** @internal */
|
|
5375
|
-
export type StreamRunAgentPartsToolCallPart$Outbound = {
|
|
5376
|
-
kind: string;
|
|
5377
|
-
tool_name: string;
|
|
5378
|
-
tool_call_id: string;
|
|
5379
|
-
arguments: {
|
|
5380
|
-
[k: string]: any;
|
|
5381
|
-
};
|
|
5382
|
-
metadata?: {
|
|
5383
|
-
[k: string]: any;
|
|
5384
|
-
} | undefined;
|
|
5385
|
-
};
|
|
5386
|
-
/** @internal */
|
|
5387
|
-
export declare const StreamRunAgentPartsToolCallPart$outboundSchema: z.ZodType<StreamRunAgentPartsToolCallPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsToolCallPart>;
|
|
5388
|
-
export declare function streamRunAgentPartsToolCallPartToJSON(streamRunAgentPartsToolCallPart: StreamRunAgentPartsToolCallPart): string;
|
|
5389
|
-
export declare function streamRunAgentPartsToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsToolCallPart, SDKValidationError>;
|
|
5390
|
-
/** @internal */
|
|
5391
|
-
export declare const StreamRunAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponseKind>;
|
|
5392
|
-
/** @internal */
|
|
5393
|
-
export declare const StreamRunAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsResponseKind>;
|
|
5394
|
-
/** @internal */
|
|
5395
|
-
export declare const StreamRunAgentFileAgentsFileInURIFormat$inboundSchema: z.ZodType<StreamRunAgentFileAgentsFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
5396
|
-
/** @internal */
|
|
5397
|
-
export type StreamRunAgentFileAgentsFileInURIFormat$Outbound = {
|
|
5398
|
-
uri: string;
|
|
5399
|
-
mimeType?: string | undefined;
|
|
5400
|
-
name?: string | undefined;
|
|
5401
|
-
};
|
|
5402
|
-
/** @internal */
|
|
5403
|
-
export declare const StreamRunAgentFileAgentsFileInURIFormat$outboundSchema: z.ZodType<StreamRunAgentFileAgentsFileInURIFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileAgentsFileInURIFormat>;
|
|
5404
|
-
export declare function streamRunAgentFileAgentsFileInURIFormatToJSON(streamRunAgentFileAgentsFileInURIFormat: StreamRunAgentFileAgentsFileInURIFormat): string;
|
|
5405
|
-
export declare function streamRunAgentFileAgentsFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileAgentsFileInURIFormat, SDKValidationError>;
|
|
5406
|
-
/** @internal */
|
|
5407
|
-
export declare const StreamRunAgentFileAgentsBinaryFormat$inboundSchema: z.ZodType<StreamRunAgentFileAgentsBinaryFormat, z.ZodTypeDef, unknown>;
|
|
5408
|
-
/** @internal */
|
|
5409
|
-
export type StreamRunAgentFileAgentsBinaryFormat$Outbound = {
|
|
5410
|
-
bytes: string;
|
|
5411
|
-
mimeType?: string | undefined;
|
|
5412
|
-
name?: string | undefined;
|
|
5413
|
-
};
|
|
5414
|
-
/** @internal */
|
|
5415
|
-
export declare const StreamRunAgentFileAgentsBinaryFormat$outboundSchema: z.ZodType<StreamRunAgentFileAgentsBinaryFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileAgentsBinaryFormat>;
|
|
5416
|
-
export declare function streamRunAgentFileAgentsBinaryFormatToJSON(streamRunAgentFileAgentsBinaryFormat: StreamRunAgentFileAgentsBinaryFormat): string;
|
|
5417
|
-
export declare function streamRunAgentFileAgentsBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileAgentsBinaryFormat, SDKValidationError>;
|
|
5418
|
-
/** @internal */
|
|
5419
|
-
export declare const StreamRunAgentPartsFile$inboundSchema: z.ZodType<StreamRunAgentPartsFile, z.ZodTypeDef, unknown>;
|
|
5420
|
-
/** @internal */
|
|
5421
|
-
export type StreamRunAgentPartsFile$Outbound = StreamRunAgentFileAgentsBinaryFormat$Outbound | StreamRunAgentFileAgentsFileInURIFormat$Outbound;
|
|
5422
|
-
/** @internal */
|
|
5423
|
-
export declare const StreamRunAgentPartsFile$outboundSchema: z.ZodType<StreamRunAgentPartsFile$Outbound, z.ZodTypeDef, StreamRunAgentPartsFile>;
|
|
5424
|
-
export declare function streamRunAgentPartsFileToJSON(streamRunAgentPartsFile: StreamRunAgentPartsFile): string;
|
|
5425
|
-
export declare function streamRunAgentPartsFileFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsFile, SDKValidationError>;
|
|
5426
|
-
/** @internal */
|
|
5427
|
-
export declare const StreamRunAgentPartsFilePart$inboundSchema: z.ZodType<StreamRunAgentPartsFilePart, z.ZodTypeDef, unknown>;
|
|
5428
|
-
/** @internal */
|
|
5429
|
-
export type StreamRunAgentPartsFilePart$Outbound = {
|
|
5430
|
-
kind: string;
|
|
5431
|
-
file: StreamRunAgentFileAgentsBinaryFormat$Outbound | StreamRunAgentFileAgentsFileInURIFormat$Outbound;
|
|
5432
|
-
metadata?: {
|
|
5433
|
-
[k: string]: any;
|
|
5434
|
-
} | undefined;
|
|
5435
|
-
};
|
|
5436
|
-
/** @internal */
|
|
5437
|
-
export declare const StreamRunAgentPartsFilePart$outboundSchema: z.ZodType<StreamRunAgentPartsFilePart$Outbound, z.ZodTypeDef, StreamRunAgentPartsFilePart>;
|
|
5438
|
-
export declare function streamRunAgentPartsFilePartToJSON(streamRunAgentPartsFilePart: StreamRunAgentPartsFilePart): string;
|
|
5439
|
-
export declare function streamRunAgentPartsFilePartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsFilePart, SDKValidationError>;
|
|
5440
|
-
/** @internal */
|
|
5441
|
-
export declare const StreamRunAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsKind>;
|
|
5442
|
-
/** @internal */
|
|
5443
|
-
export declare const StreamRunAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsAgentsKind>;
|
|
5444
|
-
/** @internal */
|
|
5445
|
-
export declare const StreamRunAgentPartsDataPart$inboundSchema: z.ZodType<StreamRunAgentPartsDataPart, z.ZodTypeDef, unknown>;
|
|
5446
|
-
/** @internal */
|
|
5447
|
-
export type StreamRunAgentPartsDataPart$Outbound = {
|
|
5448
|
-
kind: string;
|
|
5449
|
-
data: {
|
|
5450
|
-
[k: string]: any;
|
|
5451
|
-
};
|
|
5452
|
-
metadata?: {
|
|
5453
|
-
[k: string]: any;
|
|
5454
|
-
} | undefined;
|
|
5455
|
-
};
|
|
5456
|
-
/** @internal */
|
|
5457
|
-
export declare const StreamRunAgentPartsDataPart$outboundSchema: z.ZodType<StreamRunAgentPartsDataPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsDataPart>;
|
|
5458
|
-
export declare function streamRunAgentPartsDataPartToJSON(streamRunAgentPartsDataPart: StreamRunAgentPartsDataPart): string;
|
|
5459
|
-
export declare function streamRunAgentPartsDataPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsDataPart, SDKValidationError>;
|
|
5460
|
-
/** @internal */
|
|
5461
|
-
export declare const StreamRunAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsKind>;
|
|
5462
|
-
/** @internal */
|
|
5463
|
-
export declare const StreamRunAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPartsKind>;
|
|
5464
|
-
/** @internal */
|
|
5465
|
-
export declare const StreamRunAgentPartsTextPart$inboundSchema: z.ZodType<StreamRunAgentPartsTextPart, z.ZodTypeDef, unknown>;
|
|
5466
|
-
/** @internal */
|
|
5467
|
-
export type StreamRunAgentPartsTextPart$Outbound = {
|
|
5468
|
-
kind: string;
|
|
5469
|
-
text: string;
|
|
5470
|
-
};
|
|
5471
|
-
/** @internal */
|
|
5472
|
-
export declare const StreamRunAgentPartsTextPart$outboundSchema: z.ZodType<StreamRunAgentPartsTextPart$Outbound, z.ZodTypeDef, StreamRunAgentPartsTextPart>;
|
|
5473
|
-
export declare function streamRunAgentPartsTextPartToJSON(streamRunAgentPartsTextPart: StreamRunAgentPartsTextPart): string;
|
|
5474
|
-
export declare function streamRunAgentPartsTextPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPartsTextPart, SDKValidationError>;
|
|
5475
|
-
/** @internal */
|
|
5476
4664
|
export declare const DataParts$inboundSchema: z.ZodType<DataParts, z.ZodTypeDef, unknown>;
|
|
5477
4665
|
/** @internal */
|
|
5478
|
-
export type DataParts$Outbound =
|
|
4666
|
+
export type DataParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
4667
|
+
kind: "tool_call";
|
|
4668
|
+
}) | (components.TextPart$Outbound & {
|
|
4669
|
+
kind: "text";
|
|
4670
|
+
}) | (components.DataPart$Outbound & {
|
|
4671
|
+
kind: "data";
|
|
4672
|
+
}) | (components.FilePart$Outbound & {
|
|
4673
|
+
kind: "file";
|
|
4674
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
4675
|
+
kind: "tool_result";
|
|
4676
|
+
});
|
|
5479
4677
|
/** @internal */
|
|
5480
4678
|
export declare const DataParts$outboundSchema: z.ZodType<DataParts$Outbound, z.ZodTypeDef, DataParts>;
|
|
5481
4679
|
export declare function dataPartsToJSON(dataParts: DataParts): string;
|
|
@@ -5486,7 +4684,17 @@ export declare const InputMessage$inboundSchema: z.ZodType<InputMessage, z.ZodTy
|
|
|
5486
4684
|
export type InputMessage$Outbound = {
|
|
5487
4685
|
messageId?: string | undefined;
|
|
5488
4686
|
role: string;
|
|
5489
|
-
parts: Array<
|
|
4687
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
4688
|
+
kind: "tool_call";
|
|
4689
|
+
}) | (components.TextPart$Outbound & {
|
|
4690
|
+
kind: "text";
|
|
4691
|
+
}) | (components.DataPart$Outbound & {
|
|
4692
|
+
kind: "data";
|
|
4693
|
+
}) | (components.FilePart$Outbound & {
|
|
4694
|
+
kind: "file";
|
|
4695
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
4696
|
+
kind: "tool_result";
|
|
4697
|
+
})>;
|
|
5490
4698
|
metadata?: {
|
|
5491
4699
|
[k: string]: any;
|
|
5492
4700
|
} | undefined;
|
|
@@ -5580,6 +4788,7 @@ export declare function dataSettingsFromJSON(jsonString: string): SafeParseResul
|
|
|
5580
4788
|
export declare const StreamRunAgentDataData$inboundSchema: z.ZodType<StreamRunAgentDataData, z.ZodTypeDef, unknown>;
|
|
5581
4789
|
/** @internal */
|
|
5582
4790
|
export type StreamRunAgentDataData$Outbound = {
|
|
4791
|
+
workflowRunId: string;
|
|
5583
4792
|
integration_id?: string | undefined;
|
|
5584
4793
|
inputMessage: InputMessage$Outbound;
|
|
5585
4794
|
modelId: string;
|