@orq-ai/node 4.1.9 → 4.1.11
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 +222 -222
- package/bin/mcp-server.js.map +40 -40
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.js +2 -2
- package/lib/sdks.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/conversationresponse.js +2 -2
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.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/generateconversationname.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- 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/retrieveconversation.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.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.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/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 +2 -11
- package/packages/orq-rc/src/funcs/{evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts → conversationsCreateConversationResponse.ts} +34 -38
- package/packages/orq-rc/src/funcs/conversationsList.ts +6 -1
- package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +5 -4
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +6 -5
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +6 -5
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +6 -5
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +6 -5
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +6 -5
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +6 -5
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +6 -5
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +6 -5
- package/packages/orq-rc/src/funcs/toolsCreate.ts +2 -11
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/sdks.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +3 -3
- package/packages/orq-rc/src/mcp-server/tools/conversationsCreateConversationResponse.ts +39 -0
- package/packages/orq-rc/src/mcp-server/tools/conversationsList.ts +2 -0
- package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +16 -1
- package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +16 -1
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +16 -1
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +16 -1
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +16 -1
- package/packages/orq-rc/src/models/components/conversationresponse.ts +26 -26
- package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +226 -0
- package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
- package/packages/orq-rc/src/models/components/index.ts +4 -0
- package/packages/orq-rc/src/models/components/messageresponse.ts +217 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +2 -2
- package/packages/orq-rc/src/models/components/publiccontact.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +2 -2
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +14 -0
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +1 -0
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +1 -0
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +1 -0
- package/packages/orq-rc/src/models/components/usermessagerequest.ts +194 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -2
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +40 -0
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +122 -5
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +110 -7
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createconversation.ts +59 -36
- package/packages/orq-rc/src/models/operations/createconversationresponse.ts +794 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +48 -40
- 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/createimage.ts +105 -5
- package/packages/orq-rc/src/models/operations/creatememory.ts +3 -15
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +7 -7
- package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
- package/packages/orq-rc/src/models/operations/deletememory.ts +6 -6
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +6 -6
- 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/generateconversationname.ts +27 -27
- package/packages/orq-rc/src/models/operations/getallmemories.ts +3 -8
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +6 -6
- package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +4 -4
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +4 -4
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +4 -4
- package/packages/orq-rc/src/models/operations/index.ts +1 -1
- package/packages/orq-rc/src/models/operations/invokeagent.ts +128 -5
- package/packages/orq-rc/src/models/operations/listagents.ts +20 -0
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listconversations.ts +10 -3
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +53 -53
- 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/parse.ts +157 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +22 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -197
- 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/retrievememory.ts +9 -14
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +6 -6
- package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
- package/packages/orq-rc/src/models/operations/runagent.ts +130 -7
- package/packages/orq-rc/src/models/operations/streamagent.ts +120 -5
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +122 -7
- package/packages/orq-rc/src/models/operations/updateagent.ts +20 -0
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateconversation.ts +39 -33
- 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/updatememory.ts +9 -32
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +6 -6
- package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/src/sdk/conversations.ts +23 -1
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -18
- package/packages/orq-rc/src/sdk/internal.ts +28 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.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/generateconversationname.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- 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/retrieveconversation.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 +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.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
- package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +0 -69
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +0 -193
|
@@ -853,7 +853,8 @@ export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
|
853
853
|
export type RunAgentPublicMessagePart =
|
|
854
854
|
| components.TextPart
|
|
855
855
|
| components.FilePart
|
|
856
|
-
| components.ToolResultPart
|
|
856
|
+
| components.ToolResultPart
|
|
857
|
+
| components.ErrorPart;
|
|
857
858
|
|
|
858
859
|
/**
|
|
859
860
|
* The A2A format message containing the task for the agent to perform.
|
|
@@ -871,12 +872,47 @@ export type RunAgentA2AMessage = {
|
|
|
871
872
|
* A2A message parts (text, file, or tool_result only)
|
|
872
873
|
*/
|
|
873
874
|
parts: Array<
|
|
874
|
-
|
|
875
|
+
| components.TextPart
|
|
876
|
+
| components.FilePart
|
|
877
|
+
| components.ToolResultPart
|
|
878
|
+
| components.ErrorPart
|
|
875
879
|
>;
|
|
876
880
|
};
|
|
877
881
|
|
|
878
882
|
/**
|
|
879
|
-
* Information about the
|
|
883
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
884
|
+
*/
|
|
885
|
+
export type RunAgentIdentity = {
|
|
886
|
+
/**
|
|
887
|
+
* Unique identifier for the contact
|
|
888
|
+
*/
|
|
889
|
+
id: string;
|
|
890
|
+
/**
|
|
891
|
+
* Display name of the contact
|
|
892
|
+
*/
|
|
893
|
+
displayName?: string | undefined;
|
|
894
|
+
/**
|
|
895
|
+
* Email address of the contact
|
|
896
|
+
*/
|
|
897
|
+
email?: string | undefined;
|
|
898
|
+
/**
|
|
899
|
+
* A hash of key/value pairs containing any other data about the contact
|
|
900
|
+
*/
|
|
901
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
902
|
+
/**
|
|
903
|
+
* URL to the contact's avatar or logo
|
|
904
|
+
*/
|
|
905
|
+
logoUrl?: string | undefined;
|
|
906
|
+
/**
|
|
907
|
+
* A list of tags associated with the contact
|
|
908
|
+
*/
|
|
909
|
+
tags?: Array<string> | undefined;
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
914
|
+
*
|
|
915
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
880
916
|
*/
|
|
881
917
|
export type RunAgentContact = {
|
|
882
918
|
/**
|
|
@@ -1573,7 +1609,13 @@ export type RunAgentRequestBody = {
|
|
|
1573
1609
|
*/
|
|
1574
1610
|
variables?: { [k: string]: any } | undefined;
|
|
1575
1611
|
/**
|
|
1576
|
-
* Information about the
|
|
1612
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
1613
|
+
*/
|
|
1614
|
+
identity?: RunAgentIdentity | undefined;
|
|
1615
|
+
/**
|
|
1616
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
1617
|
+
*
|
|
1618
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
1577
1619
|
*/
|
|
1578
1620
|
contact?: RunAgentContact | undefined;
|
|
1579
1621
|
/**
|
|
@@ -1673,6 +1715,7 @@ export type RunAgentExtendedMessageRole = ClosedEnum<
|
|
|
1673
1715
|
|
|
1674
1716
|
export type RunAgentParts =
|
|
1675
1717
|
| components.TextPart
|
|
1718
|
+
| components.ErrorPart
|
|
1676
1719
|
| components.DataPart
|
|
1677
1720
|
| components.FilePart
|
|
1678
1721
|
| components.ToolCallPart
|
|
@@ -1690,6 +1733,7 @@ export type RunAgentTaskStatusMessage = {
|
|
|
1690
1733
|
role: RunAgentExtendedMessageRole;
|
|
1691
1734
|
parts: Array<
|
|
1692
1735
|
| components.TextPart
|
|
1736
|
+
| components.ErrorPart
|
|
1693
1737
|
| components.DataPart
|
|
1694
1738
|
| components.FilePart
|
|
1695
1739
|
| components.ToolCallPart
|
|
@@ -3956,12 +4000,14 @@ export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
|
3956
4000
|
components.TextPart$inboundSchema,
|
|
3957
4001
|
components.FilePart$inboundSchema,
|
|
3958
4002
|
components.ToolResultPart$inboundSchema,
|
|
4003
|
+
components.ErrorPart$inboundSchema,
|
|
3959
4004
|
]);
|
|
3960
4005
|
/** @internal */
|
|
3961
4006
|
export type RunAgentPublicMessagePart$Outbound =
|
|
3962
4007
|
| components.TextPart$Outbound
|
|
3963
4008
|
| components.FilePart$Outbound
|
|
3964
|
-
| components.ToolResultPart$Outbound
|
|
4009
|
+
| components.ToolResultPart$Outbound
|
|
4010
|
+
| components.ErrorPart$Outbound;
|
|
3965
4011
|
|
|
3966
4012
|
/** @internal */
|
|
3967
4013
|
export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
@@ -3972,6 +4018,7 @@ export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
|
3972
4018
|
components.TextPart$outboundSchema,
|
|
3973
4019
|
components.FilePart$outboundSchema,
|
|
3974
4020
|
components.ToolResultPart$outboundSchema,
|
|
4021
|
+
components.ErrorPart$outboundSchema,
|
|
3975
4022
|
]);
|
|
3976
4023
|
|
|
3977
4024
|
export function runAgentPublicMessagePartToJSON(
|
|
@@ -4007,6 +4054,7 @@ export const RunAgentA2AMessage$inboundSchema: z.ZodType<
|
|
|
4007
4054
|
components.TextPart$inboundSchema,
|
|
4008
4055
|
components.FilePart$inboundSchema,
|
|
4009
4056
|
components.ToolResultPart$inboundSchema,
|
|
4057
|
+
components.ErrorPart$inboundSchema,
|
|
4010
4058
|
]),
|
|
4011
4059
|
),
|
|
4012
4060
|
});
|
|
@@ -4018,6 +4066,7 @@ export type RunAgentA2AMessage$Outbound = {
|
|
|
4018
4066
|
| components.TextPart$Outbound
|
|
4019
4067
|
| components.FilePart$Outbound
|
|
4020
4068
|
| components.ToolResultPart$Outbound
|
|
4069
|
+
| components.ErrorPart$Outbound
|
|
4021
4070
|
>;
|
|
4022
4071
|
};
|
|
4023
4072
|
|
|
@@ -4037,6 +4086,7 @@ export const RunAgentA2AMessage$outboundSchema: z.ZodType<
|
|
|
4037
4086
|
components.TextPart$outboundSchema,
|
|
4038
4087
|
components.FilePart$outboundSchema,
|
|
4039
4088
|
components.ToolResultPart$outboundSchema,
|
|
4089
|
+
components.ErrorPart$outboundSchema,
|
|
4040
4090
|
]),
|
|
4041
4091
|
),
|
|
4042
4092
|
});
|
|
@@ -4058,6 +4108,70 @@ export function runAgentA2AMessageFromJSON(
|
|
|
4058
4108
|
);
|
|
4059
4109
|
}
|
|
4060
4110
|
|
|
4111
|
+
/** @internal */
|
|
4112
|
+
export const RunAgentIdentity$inboundSchema: z.ZodType<
|
|
4113
|
+
RunAgentIdentity,
|
|
4114
|
+
z.ZodTypeDef,
|
|
4115
|
+
unknown
|
|
4116
|
+
> = z.object({
|
|
4117
|
+
id: z.string(),
|
|
4118
|
+
display_name: z.string().optional(),
|
|
4119
|
+
email: z.string().optional(),
|
|
4120
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
4121
|
+
logo_url: z.string().optional(),
|
|
4122
|
+
tags: z.array(z.string()).optional(),
|
|
4123
|
+
}).transform((v) => {
|
|
4124
|
+
return remap$(v, {
|
|
4125
|
+
"display_name": "displayName",
|
|
4126
|
+
"logo_url": "logoUrl",
|
|
4127
|
+
});
|
|
4128
|
+
});
|
|
4129
|
+
/** @internal */
|
|
4130
|
+
export type RunAgentIdentity$Outbound = {
|
|
4131
|
+
id: string;
|
|
4132
|
+
display_name?: string | undefined;
|
|
4133
|
+
email?: string | undefined;
|
|
4134
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
4135
|
+
logo_url?: string | undefined;
|
|
4136
|
+
tags?: Array<string> | undefined;
|
|
4137
|
+
};
|
|
4138
|
+
|
|
4139
|
+
/** @internal */
|
|
4140
|
+
export const RunAgentIdentity$outboundSchema: z.ZodType<
|
|
4141
|
+
RunAgentIdentity$Outbound,
|
|
4142
|
+
z.ZodTypeDef,
|
|
4143
|
+
RunAgentIdentity
|
|
4144
|
+
> = z.object({
|
|
4145
|
+
id: z.string(),
|
|
4146
|
+
displayName: z.string().optional(),
|
|
4147
|
+
email: z.string().optional(),
|
|
4148
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
4149
|
+
logoUrl: z.string().optional(),
|
|
4150
|
+
tags: z.array(z.string()).optional(),
|
|
4151
|
+
}).transform((v) => {
|
|
4152
|
+
return remap$(v, {
|
|
4153
|
+
displayName: "display_name",
|
|
4154
|
+
logoUrl: "logo_url",
|
|
4155
|
+
});
|
|
4156
|
+
});
|
|
4157
|
+
|
|
4158
|
+
export function runAgentIdentityToJSON(
|
|
4159
|
+
runAgentIdentity: RunAgentIdentity,
|
|
4160
|
+
): string {
|
|
4161
|
+
return JSON.stringify(
|
|
4162
|
+
RunAgentIdentity$outboundSchema.parse(runAgentIdentity),
|
|
4163
|
+
);
|
|
4164
|
+
}
|
|
4165
|
+
export function runAgentIdentityFromJSON(
|
|
4166
|
+
jsonString: string,
|
|
4167
|
+
): SafeParseResult<RunAgentIdentity, SDKValidationError> {
|
|
4168
|
+
return safeParse(
|
|
4169
|
+
jsonString,
|
|
4170
|
+
(x) => RunAgentIdentity$inboundSchema.parse(JSON.parse(x)),
|
|
4171
|
+
`Failed to parse 'RunAgentIdentity' from JSON`,
|
|
4172
|
+
);
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4061
4175
|
/** @internal */
|
|
4062
4176
|
export const RunAgentContact$inboundSchema: z.ZodType<
|
|
4063
4177
|
RunAgentContact,
|
|
@@ -4389,7 +4503,7 @@ export function schemaFromJSON(
|
|
|
4389
4503
|
/** @internal */
|
|
4390
4504
|
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
4391
4505
|
.object({
|
|
4392
|
-
id: z.string().default("
|
|
4506
|
+
id: z.string().default("01KEVEEQ7ZB0DYZ9DF1VKC4WD5"),
|
|
4393
4507
|
name: z.string(),
|
|
4394
4508
|
description: z.string().optional(),
|
|
4395
4509
|
schema: z.lazy(() => Schema$inboundSchema),
|
|
@@ -4408,7 +4522,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4408
4522
|
z.ZodTypeDef,
|
|
4409
4523
|
Tools
|
|
4410
4524
|
> = z.object({
|
|
4411
|
-
id: z.string().default("
|
|
4525
|
+
id: z.string().default("01KEVEEQ7ZB0DYZ9DF1VKC4WD5"),
|
|
4412
4526
|
name: z.string(),
|
|
4413
4527
|
description: z.string().optional(),
|
|
4414
4528
|
schema: z.lazy(() => Schema$outboundSchema),
|
|
@@ -6226,6 +6340,7 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
6226
6340
|
instructions: z.string(),
|
|
6227
6341
|
message: z.lazy(() => RunAgentA2AMessage$inboundSchema),
|
|
6228
6342
|
variables: z.record(z.any()).optional(),
|
|
6343
|
+
identity: z.lazy(() => RunAgentIdentity$inboundSchema).optional(),
|
|
6229
6344
|
contact: z.lazy(() => RunAgentContact$inboundSchema).optional(),
|
|
6230
6345
|
thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
|
|
6231
6346
|
memory: z.lazy(() => RunAgentMemory$inboundSchema).optional(),
|
|
@@ -6261,6 +6376,7 @@ export type RunAgentRequestBody$Outbound = {
|
|
|
6261
6376
|
instructions: string;
|
|
6262
6377
|
message: RunAgentA2AMessage$Outbound;
|
|
6263
6378
|
variables?: { [k: string]: any } | undefined;
|
|
6379
|
+
identity?: RunAgentIdentity$Outbound | undefined;
|
|
6264
6380
|
contact?: RunAgentContact$Outbound | undefined;
|
|
6265
6381
|
thread?: RunAgentThread$Outbound | undefined;
|
|
6266
6382
|
memory?: RunAgentMemory$Outbound | undefined;
|
|
@@ -6296,6 +6412,7 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
6296
6412
|
instructions: z.string(),
|
|
6297
6413
|
message: z.lazy(() => RunAgentA2AMessage$outboundSchema),
|
|
6298
6414
|
variables: z.record(z.any()).optional(),
|
|
6415
|
+
identity: z.lazy(() => RunAgentIdentity$outboundSchema).optional(),
|
|
6299
6416
|
contact: z.lazy(() => RunAgentContact$outboundSchema).optional(),
|
|
6300
6417
|
thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
|
|
6301
6418
|
memory: z.lazy(() => RunAgentMemory$outboundSchema).optional(),
|
|
@@ -6378,6 +6495,7 @@ export const RunAgentParts$inboundSchema: z.ZodType<
|
|
|
6378
6495
|
unknown
|
|
6379
6496
|
> = z.union([
|
|
6380
6497
|
components.TextPart$inboundSchema,
|
|
6498
|
+
components.ErrorPart$inboundSchema,
|
|
6381
6499
|
components.DataPart$inboundSchema,
|
|
6382
6500
|
components.FilePart$inboundSchema,
|
|
6383
6501
|
components.ToolCallPart$inboundSchema,
|
|
@@ -6386,6 +6504,7 @@ export const RunAgentParts$inboundSchema: z.ZodType<
|
|
|
6386
6504
|
/** @internal */
|
|
6387
6505
|
export type RunAgentParts$Outbound =
|
|
6388
6506
|
| components.TextPart$Outbound
|
|
6507
|
+
| components.ErrorPart$Outbound
|
|
6389
6508
|
| components.DataPart$Outbound
|
|
6390
6509
|
| components.FilePart$Outbound
|
|
6391
6510
|
| components.ToolCallPart$Outbound
|
|
@@ -6398,6 +6517,7 @@ export const RunAgentParts$outboundSchema: z.ZodType<
|
|
|
6398
6517
|
RunAgentParts
|
|
6399
6518
|
> = z.union([
|
|
6400
6519
|
components.TextPart$outboundSchema,
|
|
6520
|
+
components.ErrorPart$outboundSchema,
|
|
6401
6521
|
components.DataPart$outboundSchema,
|
|
6402
6522
|
components.FilePart$outboundSchema,
|
|
6403
6523
|
components.ToolCallPart$outboundSchema,
|
|
@@ -6429,6 +6549,7 @@ export const RunAgentTaskStatusMessage$inboundSchema: z.ZodType<
|
|
|
6429
6549
|
parts: z.array(
|
|
6430
6550
|
z.union([
|
|
6431
6551
|
components.TextPart$inboundSchema,
|
|
6552
|
+
components.ErrorPart$inboundSchema,
|
|
6432
6553
|
components.DataPart$inboundSchema,
|
|
6433
6554
|
components.FilePart$inboundSchema,
|
|
6434
6555
|
components.ToolCallPart$inboundSchema,
|
|
@@ -6443,6 +6564,7 @@ export type RunAgentTaskStatusMessage$Outbound = {
|
|
|
6443
6564
|
role: string;
|
|
6444
6565
|
parts: Array<
|
|
6445
6566
|
| components.TextPart$Outbound
|
|
6567
|
+
| components.ErrorPart$Outbound
|
|
6446
6568
|
| components.DataPart$Outbound
|
|
6447
6569
|
| components.FilePart$Outbound
|
|
6448
6570
|
| components.ToolCallPart$Outbound
|
|
@@ -6462,6 +6584,7 @@ export const RunAgentTaskStatusMessage$outboundSchema: z.ZodType<
|
|
|
6462
6584
|
parts: z.array(
|
|
6463
6585
|
z.union([
|
|
6464
6586
|
components.TextPart$outboundSchema,
|
|
6587
|
+
components.ErrorPart$outboundSchema,
|
|
6465
6588
|
components.DataPart$outboundSchema,
|
|
6466
6589
|
components.FilePart$outboundSchema,
|
|
6467
6590
|
components.ToolCallPart$outboundSchema,
|
|
@@ -49,7 +49,8 @@ export type StreamAgentRole =
|
|
|
49
49
|
export type StreamAgentPublicMessagePart =
|
|
50
50
|
| components.TextPart
|
|
51
51
|
| components.FilePart
|
|
52
|
-
| components.ToolResultPart
|
|
52
|
+
| components.ToolResultPart
|
|
53
|
+
| components.ErrorPart;
|
|
53
54
|
|
|
54
55
|
/**
|
|
55
56
|
* The A2A message to send to the agent (user input or tool results)
|
|
@@ -67,12 +68,47 @@ export type StreamAgentA2AMessage = {
|
|
|
67
68
|
* A2A message parts (text, file, or tool_result only)
|
|
68
69
|
*/
|
|
69
70
|
parts: Array<
|
|
70
|
-
|
|
71
|
+
| components.TextPart
|
|
72
|
+
| components.FilePart
|
|
73
|
+
| components.ToolResultPart
|
|
74
|
+
| components.ErrorPart
|
|
71
75
|
>;
|
|
72
76
|
};
|
|
73
77
|
|
|
74
78
|
/**
|
|
75
|
-
* Information about the
|
|
79
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
80
|
+
*/
|
|
81
|
+
export type StreamAgentIdentity = {
|
|
82
|
+
/**
|
|
83
|
+
* Unique identifier for the contact
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Display name of the contact
|
|
88
|
+
*/
|
|
89
|
+
displayName?: string | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Email address of the contact
|
|
92
|
+
*/
|
|
93
|
+
email?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* A hash of key/value pairs containing any other data about the contact
|
|
96
|
+
*/
|
|
97
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* URL to the contact's avatar or logo
|
|
100
|
+
*/
|
|
101
|
+
logoUrl?: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* A list of tags associated with the contact
|
|
104
|
+
*/
|
|
105
|
+
tags?: Array<string> | undefined;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
110
|
+
*
|
|
111
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
76
112
|
*/
|
|
77
113
|
export type StreamAgentContact = {
|
|
78
114
|
/**
|
|
@@ -139,7 +175,13 @@ export type StreamAgentRequestBody = {
|
|
|
139
175
|
*/
|
|
140
176
|
variables?: { [k: string]: any } | undefined;
|
|
141
177
|
/**
|
|
142
|
-
* Information about the
|
|
178
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
179
|
+
*/
|
|
180
|
+
identity?: StreamAgentIdentity | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
183
|
+
*
|
|
184
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
143
185
|
*/
|
|
144
186
|
contact?: StreamAgentContact | undefined;
|
|
145
187
|
/**
|
|
@@ -275,12 +317,14 @@ export const StreamAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
|
275
317
|
components.TextPart$inboundSchema,
|
|
276
318
|
components.FilePart$inboundSchema,
|
|
277
319
|
components.ToolResultPart$inboundSchema,
|
|
320
|
+
components.ErrorPart$inboundSchema,
|
|
278
321
|
]);
|
|
279
322
|
/** @internal */
|
|
280
323
|
export type StreamAgentPublicMessagePart$Outbound =
|
|
281
324
|
| components.TextPart$Outbound
|
|
282
325
|
| components.FilePart$Outbound
|
|
283
|
-
| components.ToolResultPart$Outbound
|
|
326
|
+
| components.ToolResultPart$Outbound
|
|
327
|
+
| components.ErrorPart$Outbound;
|
|
284
328
|
|
|
285
329
|
/** @internal */
|
|
286
330
|
export const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
@@ -291,6 +335,7 @@ export const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
|
291
335
|
components.TextPart$outboundSchema,
|
|
292
336
|
components.FilePart$outboundSchema,
|
|
293
337
|
components.ToolResultPart$outboundSchema,
|
|
338
|
+
components.ErrorPart$outboundSchema,
|
|
294
339
|
]);
|
|
295
340
|
|
|
296
341
|
export function streamAgentPublicMessagePartToJSON(
|
|
@@ -328,6 +373,7 @@ export const StreamAgentA2AMessage$inboundSchema: z.ZodType<
|
|
|
328
373
|
components.TextPart$inboundSchema,
|
|
329
374
|
components.FilePart$inboundSchema,
|
|
330
375
|
components.ToolResultPart$inboundSchema,
|
|
376
|
+
components.ErrorPart$inboundSchema,
|
|
331
377
|
]),
|
|
332
378
|
),
|
|
333
379
|
});
|
|
@@ -339,6 +385,7 @@ export type StreamAgentA2AMessage$Outbound = {
|
|
|
339
385
|
| components.TextPart$Outbound
|
|
340
386
|
| components.FilePart$Outbound
|
|
341
387
|
| components.ToolResultPart$Outbound
|
|
388
|
+
| components.ErrorPart$Outbound
|
|
342
389
|
>;
|
|
343
390
|
};
|
|
344
391
|
|
|
@@ -358,6 +405,7 @@ export const StreamAgentA2AMessage$outboundSchema: z.ZodType<
|
|
|
358
405
|
components.TextPart$outboundSchema,
|
|
359
406
|
components.FilePart$outboundSchema,
|
|
360
407
|
components.ToolResultPart$outboundSchema,
|
|
408
|
+
components.ErrorPart$outboundSchema,
|
|
361
409
|
]),
|
|
362
410
|
),
|
|
363
411
|
});
|
|
@@ -379,6 +427,70 @@ export function streamAgentA2AMessageFromJSON(
|
|
|
379
427
|
);
|
|
380
428
|
}
|
|
381
429
|
|
|
430
|
+
/** @internal */
|
|
431
|
+
export const StreamAgentIdentity$inboundSchema: z.ZodType<
|
|
432
|
+
StreamAgentIdentity,
|
|
433
|
+
z.ZodTypeDef,
|
|
434
|
+
unknown
|
|
435
|
+
> = z.object({
|
|
436
|
+
id: z.string(),
|
|
437
|
+
display_name: z.string().optional(),
|
|
438
|
+
email: z.string().optional(),
|
|
439
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
440
|
+
logo_url: z.string().optional(),
|
|
441
|
+
tags: z.array(z.string()).optional(),
|
|
442
|
+
}).transform((v) => {
|
|
443
|
+
return remap$(v, {
|
|
444
|
+
"display_name": "displayName",
|
|
445
|
+
"logo_url": "logoUrl",
|
|
446
|
+
});
|
|
447
|
+
});
|
|
448
|
+
/** @internal */
|
|
449
|
+
export type StreamAgentIdentity$Outbound = {
|
|
450
|
+
id: string;
|
|
451
|
+
display_name?: string | undefined;
|
|
452
|
+
email?: string | undefined;
|
|
453
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
454
|
+
logo_url?: string | undefined;
|
|
455
|
+
tags?: Array<string> | undefined;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
/** @internal */
|
|
459
|
+
export const StreamAgentIdentity$outboundSchema: z.ZodType<
|
|
460
|
+
StreamAgentIdentity$Outbound,
|
|
461
|
+
z.ZodTypeDef,
|
|
462
|
+
StreamAgentIdentity
|
|
463
|
+
> = z.object({
|
|
464
|
+
id: z.string(),
|
|
465
|
+
displayName: z.string().optional(),
|
|
466
|
+
email: z.string().optional(),
|
|
467
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
468
|
+
logoUrl: z.string().optional(),
|
|
469
|
+
tags: z.array(z.string()).optional(),
|
|
470
|
+
}).transform((v) => {
|
|
471
|
+
return remap$(v, {
|
|
472
|
+
displayName: "display_name",
|
|
473
|
+
logoUrl: "logo_url",
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
export function streamAgentIdentityToJSON(
|
|
478
|
+
streamAgentIdentity: StreamAgentIdentity,
|
|
479
|
+
): string {
|
|
480
|
+
return JSON.stringify(
|
|
481
|
+
StreamAgentIdentity$outboundSchema.parse(streamAgentIdentity),
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
export function streamAgentIdentityFromJSON(
|
|
485
|
+
jsonString: string,
|
|
486
|
+
): SafeParseResult<StreamAgentIdentity, SDKValidationError> {
|
|
487
|
+
return safeParse(
|
|
488
|
+
jsonString,
|
|
489
|
+
(x) => StreamAgentIdentity$inboundSchema.parse(JSON.parse(x)),
|
|
490
|
+
`Failed to parse 'StreamAgentIdentity' from JSON`,
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
|
|
382
494
|
/** @internal */
|
|
383
495
|
export const StreamAgentContact$inboundSchema: z.ZodType<
|
|
384
496
|
StreamAgentContact,
|
|
@@ -541,6 +653,7 @@ export const StreamAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
541
653
|
task_id: z.string().optional(),
|
|
542
654
|
message: z.lazy(() => StreamAgentA2AMessage$inboundSchema),
|
|
543
655
|
variables: z.record(z.any()).optional(),
|
|
656
|
+
identity: z.lazy(() => StreamAgentIdentity$inboundSchema).optional(),
|
|
544
657
|
contact: z.lazy(() => StreamAgentContact$inboundSchema).optional(),
|
|
545
658
|
thread: z.lazy(() => StreamAgentThread$inboundSchema).optional(),
|
|
546
659
|
memory: z.lazy(() => StreamAgentMemory$inboundSchema).optional(),
|
|
@@ -557,6 +670,7 @@ export type StreamAgentRequestBody$Outbound = {
|
|
|
557
670
|
task_id?: string | undefined;
|
|
558
671
|
message: StreamAgentA2AMessage$Outbound;
|
|
559
672
|
variables?: { [k: string]: any } | undefined;
|
|
673
|
+
identity?: StreamAgentIdentity$Outbound | undefined;
|
|
560
674
|
contact?: StreamAgentContact$Outbound | undefined;
|
|
561
675
|
thread?: StreamAgentThread$Outbound | undefined;
|
|
562
676
|
memory?: StreamAgentMemory$Outbound | undefined;
|
|
@@ -573,6 +687,7 @@ export const StreamAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
573
687
|
taskId: z.string().optional(),
|
|
574
688
|
message: z.lazy(() => StreamAgentA2AMessage$outboundSchema),
|
|
575
689
|
variables: z.record(z.any()).optional(),
|
|
690
|
+
identity: z.lazy(() => StreamAgentIdentity$outboundSchema).optional(),
|
|
576
691
|
contact: z.lazy(() => StreamAgentContact$outboundSchema).optional(),
|
|
577
692
|
thread: z.lazy(() => StreamAgentThread$outboundSchema).optional(),
|
|
578
693
|
memory: z.lazy(() => StreamAgentMemory$outboundSchema).optional(),
|