@orq-ai/node 4.0.9 → 4.0.10
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 +37358 -38192
- package/bin/mcp-server.js.map +49 -44
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.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 +66 -42
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +90 -44
- 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/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- 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/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 +212 -1003
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +227 -1017
- 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/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/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/agents/README.md +10 -10
- package/packages/orq-rc/docs/sdks/responses/README.md +5 -5
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsCreate.ts +4 -8
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +4 -4
- package/packages/orq-rc/src/funcs/agentsRun.ts +4 -7
- package/packages/orq-rc/src/funcs/agentsStream.ts +4 -4
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -9
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +4 -4
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +2 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +2 -3
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +6 -5
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
- package/packages/orq-rc/src/models/operations/runagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateagent.ts +4 -6
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/src/sdk/agents.ts +7 -7
- package/packages/orq-rc/src/sdk/responses.ts +2 -2
- 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/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 +188 -95
- 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/createtool.ts +12 -12
- 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/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- 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/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 +2222 -4559
- package/src/models/operations/streamrunagent.ts +2189 -4615
- 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/updatetool.ts +14 -14
|
@@ -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 RunAgentRoleUserMessage = ClosedEnum<typeof RunAgentRoleUserMessage>
|
|
|
635
636
|
* Message role (user or tool for continuing executions)
|
|
636
637
|
*/
|
|
637
638
|
export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
638
|
-
export declare const
|
|
639
|
+
export declare const RunAgentPublicMessagePartAgentsKind: {
|
|
639
640
|
readonly ToolResult: "tool_result";
|
|
640
641
|
};
|
|
641
|
-
export type
|
|
642
|
+
export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
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 RunAgentPublicMessagePartToolResultPart = {
|
|
646
|
-
kind:
|
|
647
|
+
kind: RunAgentPublicMessagePartAgentsKind;
|
|
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 RunAgentPublicMessagePartKind: {
|
|
654
655
|
readonly File: "file";
|
|
655
656
|
};
|
|
656
|
-
export type
|
|
657
|
+
export type RunAgentPublicMessagePartKind = ClosedEnum<typeof RunAgentPublicMessagePartKind>;
|
|
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 RunAgentPublicMessagePartFile = RunAgentFileBinaryFormat | RunAgentF
|
|
|
693
694
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
694
695
|
*/
|
|
695
696
|
export type RunAgentPublicMessagePartFilePart = {
|
|
696
|
-
kind:
|
|
697
|
+
kind: RunAgentPublicMessagePartKind;
|
|
697
698
|
file: RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
|
|
698
699
|
metadata?: {
|
|
699
700
|
[k: string]: any;
|
|
700
701
|
} | undefined;
|
|
701
702
|
};
|
|
702
|
-
export declare const RunAgentPublicMessagePartKind: {
|
|
703
|
-
readonly Text: "text";
|
|
704
|
-
};
|
|
705
|
-
export type RunAgentPublicMessagePartKind = ClosedEnum<typeof RunAgentPublicMessagePartKind>;
|
|
706
|
-
/**
|
|
707
|
-
* Text content part. Use this to send text messages to the agent.
|
|
708
|
-
*/
|
|
709
|
-
export type RunAgentPublicMessagePartTextPart = {
|
|
710
|
-
kind: RunAgentPublicMessagePartKind;
|
|
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 RunAgentPublicMessagePart =
|
|
706
|
+
export type RunAgentPublicMessagePart = components.TextPart | RunAgentPublicMessagePartFilePart | RunAgentPublicMessagePartToolResultPart;
|
|
717
707
|
/**
|
|
718
708
|
* The A2A format message containing the task for the agent to perform.
|
|
719
709
|
*/
|
|
@@ -729,7 +719,7 @@ export type RunAgentA2AMessage = {
|
|
|
729
719
|
/**
|
|
730
720
|
* A2A message parts (text, file, or tool_result only)
|
|
731
721
|
*/
|
|
732
|
-
parts: Array<
|
|
722
|
+
parts: Array<components.TextPart | RunAgentPublicMessagePartFilePart | RunAgentPublicMessagePartToolResultPart>;
|
|
733
723
|
};
|
|
734
724
|
/**
|
|
735
725
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
@@ -1498,116 +1488,17 @@ export declare const RunAgentExtendedMessageRole: {
|
|
|
1498
1488
|
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
1499
1489
|
*/
|
|
1500
1490
|
export type RunAgentExtendedMessageRole = ClosedEnum<typeof RunAgentExtendedMessageRole>;
|
|
1501
|
-
export
|
|
1502
|
-
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
metadata?: {
|
|
1513
|
-
[k: string]: any;
|
|
1514
|
-
} | undefined;
|
|
1515
|
-
};
|
|
1516
|
-
export declare const RunAgentPartsAgentsResponse200Kind: {
|
|
1517
|
-
readonly ToolCall: "tool_call";
|
|
1518
|
-
};
|
|
1519
|
-
export type RunAgentPartsAgentsResponse200Kind = ClosedEnum<typeof RunAgentPartsAgentsResponse200Kind>;
|
|
1520
|
-
/**
|
|
1521
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
1522
|
-
*/
|
|
1523
|
-
export type PartsToolCallPart = {
|
|
1524
|
-
kind: RunAgentPartsAgentsResponse200Kind;
|
|
1525
|
-
toolName: string;
|
|
1526
|
-
toolCallId: string;
|
|
1527
|
-
arguments: {
|
|
1528
|
-
[k: string]: any;
|
|
1529
|
-
};
|
|
1530
|
-
metadata?: {
|
|
1531
|
-
[k: string]: any;
|
|
1532
|
-
} | undefined;
|
|
1533
|
-
};
|
|
1534
|
-
export declare const RunAgentPartsAgentsResponseKind: {
|
|
1535
|
-
readonly File: "file";
|
|
1536
|
-
};
|
|
1537
|
-
export type RunAgentPartsAgentsResponseKind = ClosedEnum<typeof RunAgentPartsAgentsResponseKind>;
|
|
1538
|
-
/**
|
|
1539
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
1540
|
-
*/
|
|
1541
|
-
export type RunAgentFileAgentsFileInURIFormat = {
|
|
1542
|
-
/**
|
|
1543
|
-
* URL for the File content
|
|
1544
|
-
*/
|
|
1545
|
-
uri: string;
|
|
1546
|
-
/**
|
|
1547
|
-
* Optional mimeType for the file
|
|
1548
|
-
*/
|
|
1549
|
-
mimeType?: string | undefined;
|
|
1550
|
-
/**
|
|
1551
|
-
* Optional name for the file
|
|
1552
|
-
*/
|
|
1553
|
-
name?: string | undefined;
|
|
1554
|
-
};
|
|
1555
|
-
/**
|
|
1556
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
1557
|
-
*/
|
|
1558
|
-
export type RunAgentFileAgentsBinaryFormat = {
|
|
1559
|
-
/**
|
|
1560
|
-
* base64 encoded content of the file
|
|
1561
|
-
*/
|
|
1562
|
-
bytes: string;
|
|
1563
|
-
/**
|
|
1564
|
-
* Optional mimeType for the file
|
|
1565
|
-
*/
|
|
1566
|
-
mimeType?: string | undefined;
|
|
1567
|
-
/**
|
|
1568
|
-
* Optional name for the file
|
|
1569
|
-
*/
|
|
1570
|
-
name?: string | undefined;
|
|
1571
|
-
};
|
|
1572
|
-
export type RunAgentPartsFile = RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
|
|
1573
|
-
/**
|
|
1574
|
-
* 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.
|
|
1575
|
-
*/
|
|
1576
|
-
export type RunAgentPartsFilePart = {
|
|
1577
|
-
kind: RunAgentPartsAgentsResponseKind;
|
|
1578
|
-
file: RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
|
|
1579
|
-
metadata?: {
|
|
1580
|
-
[k: string]: any;
|
|
1581
|
-
} | undefined;
|
|
1582
|
-
};
|
|
1583
|
-
export declare const RunAgentPartsAgentsKind: {
|
|
1584
|
-
readonly Data: "data";
|
|
1585
|
-
};
|
|
1586
|
-
export type RunAgentPartsAgentsKind = ClosedEnum<typeof RunAgentPartsAgentsKind>;
|
|
1587
|
-
/**
|
|
1588
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
1589
|
-
*/
|
|
1590
|
-
export type PartsDataPart = {
|
|
1591
|
-
kind: RunAgentPartsAgentsKind;
|
|
1592
|
-
data: {
|
|
1593
|
-
[k: string]: any;
|
|
1594
|
-
};
|
|
1595
|
-
metadata?: {
|
|
1596
|
-
[k: string]: any;
|
|
1597
|
-
} | undefined;
|
|
1598
|
-
};
|
|
1599
|
-
export declare const RunAgentPartsKind: {
|
|
1600
|
-
readonly Text: "text";
|
|
1601
|
-
};
|
|
1602
|
-
export type RunAgentPartsKind = ClosedEnum<typeof RunAgentPartsKind>;
|
|
1603
|
-
/**
|
|
1604
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
1605
|
-
*/
|
|
1606
|
-
export type RunAgentPartsTextPart = {
|
|
1607
|
-
kind: RunAgentPartsKind;
|
|
1608
|
-
text: string;
|
|
1609
|
-
};
|
|
1610
|
-
export type RunAgentParts = PartsToolCallPart | RunAgentPartsTextPart | PartsDataPart | RunAgentPartsFilePart | RunAgentPartsToolResultPart;
|
|
1491
|
+
export type RunAgentParts = (components.ToolCallPart & {
|
|
1492
|
+
kind: "tool_call";
|
|
1493
|
+
}) | (components.TextPart & {
|
|
1494
|
+
kind: "text";
|
|
1495
|
+
}) | (components.DataPart & {
|
|
1496
|
+
kind: "data";
|
|
1497
|
+
}) | (components.FilePart & {
|
|
1498
|
+
kind: "file";
|
|
1499
|
+
}) | (components.ToolResultPart & {
|
|
1500
|
+
kind: "tool_result";
|
|
1501
|
+
});
|
|
1611
1502
|
/**
|
|
1612
1503
|
* Optional A2A message providing additional context about the current status
|
|
1613
1504
|
*/
|
|
@@ -1618,7 +1509,17 @@ export type RunAgentTaskStatusMessage = {
|
|
|
1618
1509
|
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
1619
1510
|
*/
|
|
1620
1511
|
role: RunAgentExtendedMessageRole;
|
|
1621
|
-
parts: Array<
|
|
1512
|
+
parts: Array<(components.ToolCallPart & {
|
|
1513
|
+
kind: "tool_call";
|
|
1514
|
+
}) | (components.TextPart & {
|
|
1515
|
+
kind: "text";
|
|
1516
|
+
}) | (components.DataPart & {
|
|
1517
|
+
kind: "data";
|
|
1518
|
+
}) | (components.FilePart & {
|
|
1519
|
+
kind: "file";
|
|
1520
|
+
}) | (components.ToolResultPart & {
|
|
1521
|
+
kind: "tool_result";
|
|
1522
|
+
})>;
|
|
1622
1523
|
};
|
|
1623
1524
|
/**
|
|
1624
1525
|
* Current task status information
|
|
@@ -2115,9 +2016,9 @@ export declare const RunAgentRole$outboundSchema: z.ZodType<RunAgentRole$Outboun
|
|
|
2115
2016
|
export declare function runAgentRoleToJSON(runAgentRole: RunAgentRole): string;
|
|
2116
2017
|
export declare function runAgentRoleFromJSON(jsonString: string): SafeParseResult<RunAgentRole, SDKValidationError>;
|
|
2117
2018
|
/** @internal */
|
|
2118
|
-
export declare const
|
|
2019
|
+
export declare const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
2119
2020
|
/** @internal */
|
|
2120
|
-
export declare const
|
|
2021
|
+
export declare const RunAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
2121
2022
|
/** @internal */
|
|
2122
2023
|
export declare const RunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
2123
2024
|
/** @internal */
|
|
@@ -2134,9 +2035,9 @@ export declare const RunAgentPublicMessagePartToolResultPart$outboundSchema: z.Z
|
|
|
2134
2035
|
export declare function runAgentPublicMessagePartToolResultPartToJSON(runAgentPublicMessagePartToolResultPart: RunAgentPublicMessagePartToolResultPart): string;
|
|
2135
2036
|
export declare function runAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartToolResultPart, SDKValidationError>;
|
|
2136
2037
|
/** @internal */
|
|
2137
|
-
export declare const
|
|
2038
|
+
export declare const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2138
2039
|
/** @internal */
|
|
2139
|
-
export declare const
|
|
2040
|
+
export declare const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2140
2041
|
/** @internal */
|
|
2141
2042
|
export declare const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2142
2043
|
/** @internal */
|
|
@@ -2184,24 +2085,9 @@ export declare const RunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType
|
|
|
2184
2085
|
export declare function runAgentPublicMessagePartFilePartToJSON(runAgentPublicMessagePartFilePart: RunAgentPublicMessagePartFilePart): string;
|
|
2185
2086
|
export declare function runAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
2186
2087
|
/** @internal */
|
|
2187
|
-
export declare const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2188
|
-
/** @internal */
|
|
2189
|
-
export declare const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2190
|
-
/** @internal */
|
|
2191
|
-
export declare const RunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
|
|
2192
|
-
/** @internal */
|
|
2193
|
-
export type RunAgentPublicMessagePartTextPart$Outbound = {
|
|
2194
|
-
kind: string;
|
|
2195
|
-
text: string;
|
|
2196
|
-
};
|
|
2197
|
-
/** @internal */
|
|
2198
|
-
export declare const RunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<RunAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartTextPart>;
|
|
2199
|
-
export declare function runAgentPublicMessagePartTextPartToJSON(runAgentPublicMessagePartTextPart: RunAgentPublicMessagePartTextPart): string;
|
|
2200
|
-
export declare function runAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartTextPart, SDKValidationError>;
|
|
2201
|
-
/** @internal */
|
|
2202
2088
|
export declare const RunAgentPublicMessagePart$inboundSchema: z.ZodType<RunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
2203
2089
|
/** @internal */
|
|
2204
|
-
export type RunAgentPublicMessagePart$Outbound =
|
|
2090
|
+
export type RunAgentPublicMessagePart$Outbound = components.TextPart$Outbound | RunAgentPublicMessagePartFilePart$Outbound | RunAgentPublicMessagePartToolResultPart$Outbound;
|
|
2205
2091
|
/** @internal */
|
|
2206
2092
|
export declare const RunAgentPublicMessagePart$outboundSchema: z.ZodType<RunAgentPublicMessagePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePart>;
|
|
2207
2093
|
export declare function runAgentPublicMessagePartToJSON(runAgentPublicMessagePart: RunAgentPublicMessagePart): string;
|
|
@@ -2212,7 +2098,7 @@ export declare const RunAgentA2AMessage$inboundSchema: z.ZodType<RunAgentA2AMess
|
|
|
2212
2098
|
export type RunAgentA2AMessage$Outbound = {
|
|
2213
2099
|
messageId?: string | undefined;
|
|
2214
2100
|
role: string | string;
|
|
2215
|
-
parts: Array<
|
|
2101
|
+
parts: Array<components.TextPart$Outbound | RunAgentPublicMessagePartFilePart$Outbound | RunAgentPublicMessagePartToolResultPart$Outbound>;
|
|
2216
2102
|
};
|
|
2217
2103
|
/** @internal */
|
|
2218
2104
|
export declare const RunAgentA2AMessage$outboundSchema: z.ZodType<RunAgentA2AMessage$Outbound, z.ZodTypeDef, RunAgentA2AMessage>;
|
|
@@ -2836,135 +2722,19 @@ export declare const RunAgentExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
|
|
|
2836
2722
|
/** @internal */
|
|
2837
2723
|
export declare const RunAgentExtendedMessageRole$outboundSchema: z.ZodNativeEnum<typeof RunAgentExtendedMessageRole>;
|
|
2838
2724
|
/** @internal */
|
|
2839
|
-
export declare const RunAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponse200ApplicationJSONKind>;
|
|
2840
|
-
/** @internal */
|
|
2841
|
-
export declare const RunAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponse200ApplicationJSONKind>;
|
|
2842
|
-
/** @internal */
|
|
2843
|
-
export declare const RunAgentPartsToolResultPart$inboundSchema: z.ZodType<RunAgentPartsToolResultPart, z.ZodTypeDef, unknown>;
|
|
2844
|
-
/** @internal */
|
|
2845
|
-
export type RunAgentPartsToolResultPart$Outbound = {
|
|
2846
|
-
kind: string;
|
|
2847
|
-
tool_call_id: string;
|
|
2848
|
-
result?: any | undefined;
|
|
2849
|
-
metadata?: {
|
|
2850
|
-
[k: string]: any;
|
|
2851
|
-
} | undefined;
|
|
2852
|
-
};
|
|
2853
|
-
/** @internal */
|
|
2854
|
-
export declare const RunAgentPartsToolResultPart$outboundSchema: z.ZodType<RunAgentPartsToolResultPart$Outbound, z.ZodTypeDef, RunAgentPartsToolResultPart>;
|
|
2855
|
-
export declare function runAgentPartsToolResultPartToJSON(runAgentPartsToolResultPart: RunAgentPartsToolResultPart): string;
|
|
2856
|
-
export declare function runAgentPartsToolResultPartFromJSON(jsonString: string): SafeParseResult<RunAgentPartsToolResultPart, SDKValidationError>;
|
|
2857
|
-
/** @internal */
|
|
2858
|
-
export declare const RunAgentPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponse200Kind>;
|
|
2859
|
-
/** @internal */
|
|
2860
|
-
export declare const RunAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponse200Kind>;
|
|
2861
|
-
/** @internal */
|
|
2862
|
-
export declare const PartsToolCallPart$inboundSchema: z.ZodType<PartsToolCallPart, z.ZodTypeDef, unknown>;
|
|
2863
|
-
/** @internal */
|
|
2864
|
-
export type PartsToolCallPart$Outbound = {
|
|
2865
|
-
kind: string;
|
|
2866
|
-
tool_name: string;
|
|
2867
|
-
tool_call_id: string;
|
|
2868
|
-
arguments: {
|
|
2869
|
-
[k: string]: any;
|
|
2870
|
-
};
|
|
2871
|
-
metadata?: {
|
|
2872
|
-
[k: string]: any;
|
|
2873
|
-
} | undefined;
|
|
2874
|
-
};
|
|
2875
|
-
/** @internal */
|
|
2876
|
-
export declare const PartsToolCallPart$outboundSchema: z.ZodType<PartsToolCallPart$Outbound, z.ZodTypeDef, PartsToolCallPart>;
|
|
2877
|
-
export declare function partsToolCallPartToJSON(partsToolCallPart: PartsToolCallPart): string;
|
|
2878
|
-
export declare function partsToolCallPartFromJSON(jsonString: string): SafeParseResult<PartsToolCallPart, SDKValidationError>;
|
|
2879
|
-
/** @internal */
|
|
2880
|
-
export declare const RunAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponseKind>;
|
|
2881
|
-
/** @internal */
|
|
2882
|
-
export declare const RunAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponseKind>;
|
|
2883
|
-
/** @internal */
|
|
2884
|
-
export declare const RunAgentFileAgentsFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileAgentsFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2885
|
-
/** @internal */
|
|
2886
|
-
export type RunAgentFileAgentsFileInURIFormat$Outbound = {
|
|
2887
|
-
uri: string;
|
|
2888
|
-
mimeType?: string | undefined;
|
|
2889
|
-
name?: string | undefined;
|
|
2890
|
-
};
|
|
2891
|
-
/** @internal */
|
|
2892
|
-
export declare const RunAgentFileAgentsFileInURIFormat$outboundSchema: z.ZodType<RunAgentFileAgentsFileInURIFormat$Outbound, z.ZodTypeDef, RunAgentFileAgentsFileInURIFormat>;
|
|
2893
|
-
export declare function runAgentFileAgentsFileInURIFormatToJSON(runAgentFileAgentsFileInURIFormat: RunAgentFileAgentsFileInURIFormat): string;
|
|
2894
|
-
export declare function runAgentFileAgentsFileInURIFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileAgentsFileInURIFormat, SDKValidationError>;
|
|
2895
|
-
/** @internal */
|
|
2896
|
-
export declare const RunAgentFileAgentsBinaryFormat$inboundSchema: z.ZodType<RunAgentFileAgentsBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2897
|
-
/** @internal */
|
|
2898
|
-
export type RunAgentFileAgentsBinaryFormat$Outbound = {
|
|
2899
|
-
bytes: string;
|
|
2900
|
-
mimeType?: string | undefined;
|
|
2901
|
-
name?: string | undefined;
|
|
2902
|
-
};
|
|
2903
|
-
/** @internal */
|
|
2904
|
-
export declare const RunAgentFileAgentsBinaryFormat$outboundSchema: z.ZodType<RunAgentFileAgentsBinaryFormat$Outbound, z.ZodTypeDef, RunAgentFileAgentsBinaryFormat>;
|
|
2905
|
-
export declare function runAgentFileAgentsBinaryFormatToJSON(runAgentFileAgentsBinaryFormat: RunAgentFileAgentsBinaryFormat): string;
|
|
2906
|
-
export declare function runAgentFileAgentsBinaryFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileAgentsBinaryFormat, SDKValidationError>;
|
|
2907
|
-
/** @internal */
|
|
2908
|
-
export declare const RunAgentPartsFile$inboundSchema: z.ZodType<RunAgentPartsFile, z.ZodTypeDef, unknown>;
|
|
2909
|
-
/** @internal */
|
|
2910
|
-
export type RunAgentPartsFile$Outbound = RunAgentFileAgentsBinaryFormat$Outbound | RunAgentFileAgentsFileInURIFormat$Outbound;
|
|
2911
|
-
/** @internal */
|
|
2912
|
-
export declare const RunAgentPartsFile$outboundSchema: z.ZodType<RunAgentPartsFile$Outbound, z.ZodTypeDef, RunAgentPartsFile>;
|
|
2913
|
-
export declare function runAgentPartsFileToJSON(runAgentPartsFile: RunAgentPartsFile): string;
|
|
2914
|
-
export declare function runAgentPartsFileFromJSON(jsonString: string): SafeParseResult<RunAgentPartsFile, SDKValidationError>;
|
|
2915
|
-
/** @internal */
|
|
2916
|
-
export declare const RunAgentPartsFilePart$inboundSchema: z.ZodType<RunAgentPartsFilePart, z.ZodTypeDef, unknown>;
|
|
2917
|
-
/** @internal */
|
|
2918
|
-
export type RunAgentPartsFilePart$Outbound = {
|
|
2919
|
-
kind: string;
|
|
2920
|
-
file: RunAgentFileAgentsBinaryFormat$Outbound | RunAgentFileAgentsFileInURIFormat$Outbound;
|
|
2921
|
-
metadata?: {
|
|
2922
|
-
[k: string]: any;
|
|
2923
|
-
} | undefined;
|
|
2924
|
-
};
|
|
2925
|
-
/** @internal */
|
|
2926
|
-
export declare const RunAgentPartsFilePart$outboundSchema: z.ZodType<RunAgentPartsFilePart$Outbound, z.ZodTypeDef, RunAgentPartsFilePart>;
|
|
2927
|
-
export declare function runAgentPartsFilePartToJSON(runAgentPartsFilePart: RunAgentPartsFilePart): string;
|
|
2928
|
-
export declare function runAgentPartsFilePartFromJSON(jsonString: string): SafeParseResult<RunAgentPartsFilePart, SDKValidationError>;
|
|
2929
|
-
/** @internal */
|
|
2930
|
-
export declare const RunAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsKind>;
|
|
2931
|
-
/** @internal */
|
|
2932
|
-
export declare const RunAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsKind>;
|
|
2933
|
-
/** @internal */
|
|
2934
|
-
export declare const PartsDataPart$inboundSchema: z.ZodType<PartsDataPart, z.ZodTypeDef, unknown>;
|
|
2935
|
-
/** @internal */
|
|
2936
|
-
export type PartsDataPart$Outbound = {
|
|
2937
|
-
kind: string;
|
|
2938
|
-
data: {
|
|
2939
|
-
[k: string]: any;
|
|
2940
|
-
};
|
|
2941
|
-
metadata?: {
|
|
2942
|
-
[k: string]: any;
|
|
2943
|
-
} | undefined;
|
|
2944
|
-
};
|
|
2945
|
-
/** @internal */
|
|
2946
|
-
export declare const PartsDataPart$outboundSchema: z.ZodType<PartsDataPart$Outbound, z.ZodTypeDef, PartsDataPart>;
|
|
2947
|
-
export declare function partsDataPartToJSON(partsDataPart: PartsDataPart): string;
|
|
2948
|
-
export declare function partsDataPartFromJSON(jsonString: string): SafeParseResult<PartsDataPart, SDKValidationError>;
|
|
2949
|
-
/** @internal */
|
|
2950
|
-
export declare const RunAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsKind>;
|
|
2951
|
-
/** @internal */
|
|
2952
|
-
export declare const RunAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsKind>;
|
|
2953
|
-
/** @internal */
|
|
2954
|
-
export declare const RunAgentPartsTextPart$inboundSchema: z.ZodType<RunAgentPartsTextPart, z.ZodTypeDef, unknown>;
|
|
2955
|
-
/** @internal */
|
|
2956
|
-
export type RunAgentPartsTextPart$Outbound = {
|
|
2957
|
-
kind: string;
|
|
2958
|
-
text: string;
|
|
2959
|
-
};
|
|
2960
|
-
/** @internal */
|
|
2961
|
-
export declare const RunAgentPartsTextPart$outboundSchema: z.ZodType<RunAgentPartsTextPart$Outbound, z.ZodTypeDef, RunAgentPartsTextPart>;
|
|
2962
|
-
export declare function runAgentPartsTextPartToJSON(runAgentPartsTextPart: RunAgentPartsTextPart): string;
|
|
2963
|
-
export declare function runAgentPartsTextPartFromJSON(jsonString: string): SafeParseResult<RunAgentPartsTextPart, SDKValidationError>;
|
|
2964
|
-
/** @internal */
|
|
2965
2725
|
export declare const RunAgentParts$inboundSchema: z.ZodType<RunAgentParts, z.ZodTypeDef, unknown>;
|
|
2966
2726
|
/** @internal */
|
|
2967
|
-
export type RunAgentParts$Outbound =
|
|
2727
|
+
export type RunAgentParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2728
|
+
kind: "tool_call";
|
|
2729
|
+
}) | (components.TextPart$Outbound & {
|
|
2730
|
+
kind: "text";
|
|
2731
|
+
}) | (components.DataPart$Outbound & {
|
|
2732
|
+
kind: "data";
|
|
2733
|
+
}) | (components.FilePart$Outbound & {
|
|
2734
|
+
kind: "file";
|
|
2735
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2736
|
+
kind: "tool_result";
|
|
2737
|
+
});
|
|
2968
2738
|
/** @internal */
|
|
2969
2739
|
export declare const RunAgentParts$outboundSchema: z.ZodType<RunAgentParts$Outbound, z.ZodTypeDef, RunAgentParts>;
|
|
2970
2740
|
export declare function runAgentPartsToJSON(runAgentParts: RunAgentParts): string;
|
|
@@ -2976,7 +2746,17 @@ export type RunAgentTaskStatusMessage$Outbound = {
|
|
|
2976
2746
|
kind: string;
|
|
2977
2747
|
messageId: string;
|
|
2978
2748
|
role: string;
|
|
2979
|
-
parts: Array<
|
|
2749
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2750
|
+
kind: "tool_call";
|
|
2751
|
+
}) | (components.TextPart$Outbound & {
|
|
2752
|
+
kind: "text";
|
|
2753
|
+
}) | (components.DataPart$Outbound & {
|
|
2754
|
+
kind: "data";
|
|
2755
|
+
}) | (components.FilePart$Outbound & {
|
|
2756
|
+
kind: "file";
|
|
2757
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2758
|
+
kind: "tool_result";
|
|
2759
|
+
})>;
|
|
2980
2760
|
};
|
|
2981
2761
|
/** @internal */
|
|
2982
2762
|
export declare const RunAgentTaskStatusMessage$outboundSchema: z.ZodType<RunAgentTaskStatusMessage$Outbound, z.ZodTypeDef, RunAgentTaskStatusMessage>;
|