@breign/client 1.0.133 → 1.0.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/ConversationsApi.d.ts +74 -1
- package/dist/apis/ConversationsApi.js +174 -0
- package/dist/models/AgentPatchUio.d.ts +7 -0
- package/dist/models/AgentPatchUio.js +3 -0
- package/dist/models/AgentPendingToolsConfigurationUio.d.ts +38 -0
- package/dist/models/AgentPendingToolsConfigurationUio.js +50 -0
- package/dist/models/AgentUio.d.ts +11 -4
- package/dist/models/AgentUio.js +7 -4
- package/dist/models/SetUserAgentConversationRequestUio.d.ts +32 -0
- package/dist/models/SetUserAgentConversationRequestUio.js +50 -0
- package/dist/models/ToolCallAttachmentUio.d.ts +87 -0
- package/dist/models/ToolCallAttachmentUio.js +71 -0
- package/dist/models/ToolCallResultRequestUio.d.ts +60 -0
- package/dist/models/ToolCallResultRequestUio.js +66 -0
- package/dist/models/ToolCallResultResponseUio.d.ts +65 -0
- package/dist/models/ToolCallResultResponseUio.js +75 -0
- package/dist/models/ToolCallUio.d.ts +93 -0
- package/dist/models/ToolCallUio.js +83 -0
- package/dist/models/ToolCallsResponseUio.d.ts +33 -0
- package/dist/models/ToolCallsResponseUio.js +51 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.d.ts +38 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.js +50 -0
- package/dist/models/UserAgentConversationUio.d.ts +38 -0
- package/dist/models/UserAgentConversationUio.js +54 -0
- package/dist/models/UserChatPreferencesUio.d.ts +45 -0
- package/dist/models/UserChatPreferencesUio.js +59 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/openapi.json +510 -0
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -5103,6 +5103,140 @@
|
|
|
5103
5103
|
"tags" : [ "conversations" ]
|
|
5104
5104
|
}
|
|
5105
5105
|
},
|
|
5106
|
+
"/organizations/{organizationId}/chat/preferences" : {
|
|
5107
|
+
"get" : {
|
|
5108
|
+
"description" : "Agents épinglés, état du rail et conversation en cours avec chaque agent de l'organisation, pour l'utilisateur courant.",
|
|
5109
|
+
"operationId" : "getUserChatPreferences",
|
|
5110
|
+
"parameters" : [ {
|
|
5111
|
+
"description" : "ID of the organization",
|
|
5112
|
+
"in" : "path",
|
|
5113
|
+
"name" : "organizationId",
|
|
5114
|
+
"required" : true,
|
|
5115
|
+
"schema" : {
|
|
5116
|
+
"type" : "string"
|
|
5117
|
+
}
|
|
5118
|
+
} ],
|
|
5119
|
+
"responses" : {
|
|
5120
|
+
"200" : {
|
|
5121
|
+
"content" : {
|
|
5122
|
+
"application/json" : {
|
|
5123
|
+
"schema" : {
|
|
5124
|
+
"$ref" : "#/components/schemas/UserChatPreferences"
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
},
|
|
5128
|
+
"description" : "Preferences retrieved successfully"
|
|
5129
|
+
},
|
|
5130
|
+
"401" : {
|
|
5131
|
+
"description" : "Unauthenticated"
|
|
5132
|
+
},
|
|
5133
|
+
"403" : {
|
|
5134
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
5135
|
+
}
|
|
5136
|
+
},
|
|
5137
|
+
"summary" : "Get the user's chat preferences",
|
|
5138
|
+
"tags" : [ "conversations" ]
|
|
5139
|
+
},
|
|
5140
|
+
"put" : {
|
|
5141
|
+
"description" : "Mise à jour partielle — une propriété absente reste inchangée.",
|
|
5142
|
+
"operationId" : "updateUserChatPreferences",
|
|
5143
|
+
"parameters" : [ {
|
|
5144
|
+
"description" : "ID of the organization",
|
|
5145
|
+
"in" : "path",
|
|
5146
|
+
"name" : "organizationId",
|
|
5147
|
+
"required" : true,
|
|
5148
|
+
"schema" : {
|
|
5149
|
+
"type" : "string"
|
|
5150
|
+
}
|
|
5151
|
+
} ],
|
|
5152
|
+
"requestBody" : {
|
|
5153
|
+
"content" : {
|
|
5154
|
+
"application/json" : {
|
|
5155
|
+
"schema" : {
|
|
5156
|
+
"$ref" : "#/components/schemas/UpdateUserChatPreferencesRequest"
|
|
5157
|
+
}
|
|
5158
|
+
}
|
|
5159
|
+
},
|
|
5160
|
+
"required" : true
|
|
5161
|
+
},
|
|
5162
|
+
"responses" : {
|
|
5163
|
+
"200" : {
|
|
5164
|
+
"content" : {
|
|
5165
|
+
"application/json" : {
|
|
5166
|
+
"schema" : {
|
|
5167
|
+
"$ref" : "#/components/schemas/UserChatPreferences"
|
|
5168
|
+
}
|
|
5169
|
+
}
|
|
5170
|
+
},
|
|
5171
|
+
"description" : "Updated preferences"
|
|
5172
|
+
},
|
|
5173
|
+
"400" : {
|
|
5174
|
+
"description" : "Invalid payload"
|
|
5175
|
+
},
|
|
5176
|
+
"401" : {
|
|
5177
|
+
"description" : "Unauthenticated"
|
|
5178
|
+
},
|
|
5179
|
+
"403" : {
|
|
5180
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
5181
|
+
}
|
|
5182
|
+
},
|
|
5183
|
+
"summary" : "Update the user's chat preferences",
|
|
5184
|
+
"tags" : [ "conversations" ]
|
|
5185
|
+
}
|
|
5186
|
+
},
|
|
5187
|
+
"/organizations/{organizationId}/chat/agents/{agentId}/conversation" : {
|
|
5188
|
+
"put" : {
|
|
5189
|
+
"description" : "Mémorise la conversation que l'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l'aperçu du chat.",
|
|
5190
|
+
"operationId" : "setUserAgentConversation",
|
|
5191
|
+
"parameters" : [ {
|
|
5192
|
+
"description" : "ID of the organization",
|
|
5193
|
+
"in" : "path",
|
|
5194
|
+
"name" : "organizationId",
|
|
5195
|
+
"required" : true,
|
|
5196
|
+
"schema" : {
|
|
5197
|
+
"type" : "string"
|
|
5198
|
+
}
|
|
5199
|
+
}, {
|
|
5200
|
+
"description" : "ID of the agent",
|
|
5201
|
+
"in" : "path",
|
|
5202
|
+
"name" : "agentId",
|
|
5203
|
+
"required" : true,
|
|
5204
|
+
"schema" : {
|
|
5205
|
+
"format" : "uuid",
|
|
5206
|
+
"type" : "string"
|
|
5207
|
+
}
|
|
5208
|
+
} ],
|
|
5209
|
+
"requestBody" : {
|
|
5210
|
+
"content" : {
|
|
5211
|
+
"application/json" : {
|
|
5212
|
+
"schema" : {
|
|
5213
|
+
"$ref" : "#/components/schemas/SetUserAgentConversationRequest"
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
},
|
|
5217
|
+
"required" : true
|
|
5218
|
+
},
|
|
5219
|
+
"responses" : {
|
|
5220
|
+
"204" : {
|
|
5221
|
+
"description" : "Conversation pointer updated"
|
|
5222
|
+
},
|
|
5223
|
+
"400" : {
|
|
5224
|
+
"description" : "conversationId is required"
|
|
5225
|
+
},
|
|
5226
|
+
"401" : {
|
|
5227
|
+
"description" : "Unauthenticated"
|
|
5228
|
+
},
|
|
5229
|
+
"403" : {
|
|
5230
|
+
"description" : "Forbidden"
|
|
5231
|
+
},
|
|
5232
|
+
"404" : {
|
|
5233
|
+
"description" : "CONVERSATION_NOT_FOUND — unknown"
|
|
5234
|
+
}
|
|
5235
|
+
},
|
|
5236
|
+
"summary" : "Set the conversation in progress with an agent",
|
|
5237
|
+
"tags" : [ "conversations" ]
|
|
5238
|
+
}
|
|
5239
|
+
},
|
|
5106
5240
|
"/organizations/{organizationId}/chat/overview" : {
|
|
5107
5241
|
"get" : {
|
|
5108
5242
|
"description" : "Pour chaque agent de l'organisation avec lequel l'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l'indication d'une réponse en cours de génération.",
|
|
@@ -11630,6 +11764,132 @@
|
|
|
11630
11764
|
"tags" : [ "prompts" ]
|
|
11631
11765
|
}
|
|
11632
11766
|
},
|
|
11767
|
+
"/conversations/{conversationId}/messages/{messageId}/tool-calls" : {
|
|
11768
|
+
"get" : {
|
|
11769
|
+
"description" : "Returns the tool calls issued by one assistant message, newest first. Use pending=true while waiting: it keeps only the calls that still need a result. Without the filter, calls already answered are returned too, so a client can replay what it sent.",
|
|
11770
|
+
"operationId" : "listMessageToolCalls",
|
|
11771
|
+
"parameters" : [ {
|
|
11772
|
+
"description" : "The ID of the conversation",
|
|
11773
|
+
"in" : "path",
|
|
11774
|
+
"name" : "conversationId",
|
|
11775
|
+
"required" : true,
|
|
11776
|
+
"schema" : {
|
|
11777
|
+
"type" : "string"
|
|
11778
|
+
}
|
|
11779
|
+
}, {
|
|
11780
|
+
"description" : "The ID of the message",
|
|
11781
|
+
"in" : "path",
|
|
11782
|
+
"name" : "messageId",
|
|
11783
|
+
"required" : true,
|
|
11784
|
+
"schema" : {
|
|
11785
|
+
"type" : "string"
|
|
11786
|
+
}
|
|
11787
|
+
}, {
|
|
11788
|
+
"description" : "When true, only the calls still awaiting a result.",
|
|
11789
|
+
"in" : "query",
|
|
11790
|
+
"name" : "pending",
|
|
11791
|
+
"schema" : {
|
|
11792
|
+
"type" : "boolean"
|
|
11793
|
+
}
|
|
11794
|
+
} ],
|
|
11795
|
+
"responses" : {
|
|
11796
|
+
"200" : {
|
|
11797
|
+
"content" : {
|
|
11798
|
+
"application/json" : {
|
|
11799
|
+
"schema" : {
|
|
11800
|
+
"$ref" : "#/components/schemas/ToolCallsResponse"
|
|
11801
|
+
}
|
|
11802
|
+
}
|
|
11803
|
+
},
|
|
11804
|
+
"description" : "Tool calls of the message"
|
|
11805
|
+
},
|
|
11806
|
+
"401" : {
|
|
11807
|
+
"description" : "Unauthorized"
|
|
11808
|
+
},
|
|
11809
|
+
"403" : {
|
|
11810
|
+
"description" : "Forbidden"
|
|
11811
|
+
},
|
|
11812
|
+
"404" : {
|
|
11813
|
+
"description" : "Conversation not found, or not visible to the caller"
|
|
11814
|
+
}
|
|
11815
|
+
},
|
|
11816
|
+
"summary" : "List the tool calls of a message",
|
|
11817
|
+
"tags" : [ "conversations" ]
|
|
11818
|
+
}
|
|
11819
|
+
},
|
|
11820
|
+
"/conversations/{conversationId}/messages/{messageId}/tool-calls/{callId}" : {
|
|
11821
|
+
"post" : {
|
|
11822
|
+
"description" : "Submits the result of one tool call, which releases the suspended conversation turn. Works for any tool: output becomes the tool result handed to the model, and attachments are stored, added to the conversation context and to the last user message. A call can only be answered once — answering an already resolved or expired call returns 409. A message may carry several calls, each answered independently and in any order.",
|
|
11823
|
+
"operationId" : "submitMessageToolCallResult",
|
|
11824
|
+
"parameters" : [ {
|
|
11825
|
+
"description" : "The ID of the conversation",
|
|
11826
|
+
"in" : "path",
|
|
11827
|
+
"name" : "conversationId",
|
|
11828
|
+
"required" : true,
|
|
11829
|
+
"schema" : {
|
|
11830
|
+
"type" : "string"
|
|
11831
|
+
}
|
|
11832
|
+
}, {
|
|
11833
|
+
"description" : "The ID of the message",
|
|
11834
|
+
"in" : "path",
|
|
11835
|
+
"name" : "messageId",
|
|
11836
|
+
"required" : true,
|
|
11837
|
+
"schema" : {
|
|
11838
|
+
"type" : "string"
|
|
11839
|
+
}
|
|
11840
|
+
}, {
|
|
11841
|
+
"description" : "Identifier of the tool call, as returned by the listing.",
|
|
11842
|
+
"in" : "path",
|
|
11843
|
+
"name" : "callId",
|
|
11844
|
+
"required" : true,
|
|
11845
|
+
"schema" : {
|
|
11846
|
+
"type" : "string"
|
|
11847
|
+
}
|
|
11848
|
+
} ],
|
|
11849
|
+
"requestBody" : {
|
|
11850
|
+
"content" : {
|
|
11851
|
+
"application/json" : {
|
|
11852
|
+
"schema" : {
|
|
11853
|
+
"$ref" : "#/components/schemas/ToolCallResultRequest"
|
|
11854
|
+
}
|
|
11855
|
+
}
|
|
11856
|
+
},
|
|
11857
|
+
"required" : true
|
|
11858
|
+
},
|
|
11859
|
+
"responses" : {
|
|
11860
|
+
"200" : {
|
|
11861
|
+
"content" : {
|
|
11862
|
+
"application/json" : {
|
|
11863
|
+
"schema" : {
|
|
11864
|
+
"$ref" : "#/components/schemas/ToolCallResultResponse"
|
|
11865
|
+
}
|
|
11866
|
+
}
|
|
11867
|
+
},
|
|
11868
|
+
"description" : "Tool call resolved and the conversation turn released"
|
|
11869
|
+
},
|
|
11870
|
+
"400" : {
|
|
11871
|
+
"description" : "Missing or invalid status, or an attachment carrying neither url nor inlineDataUrl, an invalid data URL, or a payload that could not be read."
|
|
11872
|
+
},
|
|
11873
|
+
"401" : {
|
|
11874
|
+
"description" : "Unauthorized"
|
|
11875
|
+
},
|
|
11876
|
+
"403" : {
|
|
11877
|
+
"description" : "Forbidden"
|
|
11878
|
+
},
|
|
11879
|
+
"404" : {
|
|
11880
|
+
"description" : "Conversation not found, or no such tool call on this message"
|
|
11881
|
+
},
|
|
11882
|
+
"409" : {
|
|
11883
|
+
"description" : "Tool call already resolved or expired"
|
|
11884
|
+
},
|
|
11885
|
+
"503" : {
|
|
11886
|
+
"description" : "Deferred tool calls are not configured on this deployment"
|
|
11887
|
+
}
|
|
11888
|
+
},
|
|
11889
|
+
"summary" : "Post the result of a tool call",
|
|
11890
|
+
"tags" : [ "conversations" ]
|
|
11891
|
+
}
|
|
11892
|
+
},
|
|
11633
11893
|
"/conversations/{conversationId}/messages/{messageId}/reaction" : {
|
|
11634
11894
|
"patch" : {
|
|
11635
11895
|
"description" : "Set or clear user reaction (thumb up/down) on a conversation message.",
|
|
@@ -14420,6 +14680,12 @@
|
|
|
14420
14680
|
} ],
|
|
14421
14681
|
"nullable" : true
|
|
14422
14682
|
},
|
|
14683
|
+
"pendingToolsConfiguration" : {
|
|
14684
|
+
"allOf" : [ {
|
|
14685
|
+
"$ref" : "#/components/schemas/AgentPendingToolsConfiguration"
|
|
14686
|
+
} ],
|
|
14687
|
+
"nullable" : true
|
|
14688
|
+
},
|
|
14423
14689
|
"creator" : {
|
|
14424
14690
|
"$ref" : "#/components/schemas/Agent_creator"
|
|
14425
14691
|
},
|
|
@@ -14608,6 +14874,24 @@
|
|
|
14608
14874
|
},
|
|
14609
14875
|
"type" : "object"
|
|
14610
14876
|
},
|
|
14877
|
+
"AgentPendingToolsConfiguration" : {
|
|
14878
|
+
"description" : "Per-agent activation of deferred tools: those that suspend the chat turn until a client answers. Opt-in, because an agent whose client never answers would hang its turns. A tool is available only when the general switch is on AND the tool is listed.",
|
|
14879
|
+
"properties" : {
|
|
14880
|
+
"enabled" : {
|
|
14881
|
+
"description" : "General switch for deferred tools on this agent.",
|
|
14882
|
+
"type" : "boolean"
|
|
14883
|
+
},
|
|
14884
|
+
"tools" : {
|
|
14885
|
+
"description" : "Names of the allowed deferred tools, for instance take_screenshot. Listing tools here is what makes them available, so a new deferred tool needs no schema change.",
|
|
14886
|
+
"items" : {
|
|
14887
|
+
"type" : "string"
|
|
14888
|
+
},
|
|
14889
|
+
"maxItems" : 50,
|
|
14890
|
+
"type" : "array"
|
|
14891
|
+
}
|
|
14892
|
+
},
|
|
14893
|
+
"type" : "object"
|
|
14894
|
+
},
|
|
14611
14895
|
"AgentTool" : {
|
|
14612
14896
|
"properties" : {
|
|
14613
14897
|
"id" : {
|
|
@@ -14779,6 +15063,12 @@
|
|
|
14779
15063
|
"$ref" : "#/components/schemas/AgentSandboxConfiguration"
|
|
14780
15064
|
} ],
|
|
14781
15065
|
"nullable" : true
|
|
15066
|
+
},
|
|
15067
|
+
"pendingToolsConfiguration" : {
|
|
15068
|
+
"allOf" : [ {
|
|
15069
|
+
"$ref" : "#/components/schemas/AgentPendingToolsConfiguration"
|
|
15070
|
+
} ],
|
|
15071
|
+
"nullable" : true
|
|
14782
15072
|
}
|
|
14783
15073
|
},
|
|
14784
15074
|
"type" : "object"
|
|
@@ -17475,6 +17765,70 @@
|
|
|
17475
17765
|
"$ref" : "#/components/schemas/AudioFile"
|
|
17476
17766
|
} ]
|
|
17477
17767
|
},
|
|
17768
|
+
"UserChatPreferences" : {
|
|
17769
|
+
"properties" : {
|
|
17770
|
+
"pinnedAgentIds" : {
|
|
17771
|
+
"description" : "Liste ordonnée des agents épinglés dans le rail",
|
|
17772
|
+
"items" : {
|
|
17773
|
+
"format" : "uuid",
|
|
17774
|
+
"type" : "string"
|
|
17775
|
+
},
|
|
17776
|
+
"type" : "array"
|
|
17777
|
+
},
|
|
17778
|
+
"railOpen" : {
|
|
17779
|
+
"type" : "boolean"
|
|
17780
|
+
},
|
|
17781
|
+
"agentConversations" : {
|
|
17782
|
+
"description" : "Conversation en cours avec chaque agent de l'organisation",
|
|
17783
|
+
"items" : {
|
|
17784
|
+
"$ref" : "#/components/schemas/UserAgentConversation"
|
|
17785
|
+
},
|
|
17786
|
+
"type" : "array"
|
|
17787
|
+
}
|
|
17788
|
+
},
|
|
17789
|
+
"required" : [ "agentConversations", "pinnedAgentIds", "railOpen" ],
|
|
17790
|
+
"type" : "object"
|
|
17791
|
+
},
|
|
17792
|
+
"UserAgentConversation" : {
|
|
17793
|
+
"properties" : {
|
|
17794
|
+
"agentId" : {
|
|
17795
|
+
"format" : "uuid",
|
|
17796
|
+
"type" : "string"
|
|
17797
|
+
},
|
|
17798
|
+
"conversationId" : {
|
|
17799
|
+
"format" : "uuid",
|
|
17800
|
+
"type" : "string"
|
|
17801
|
+
}
|
|
17802
|
+
},
|
|
17803
|
+
"required" : [ "agentId", "conversationId" ],
|
|
17804
|
+
"type" : "object"
|
|
17805
|
+
},
|
|
17806
|
+
"UpdateUserChatPreferencesRequest" : {
|
|
17807
|
+
"description" : "Mise à jour partielle — une propriété absente reste inchangée.",
|
|
17808
|
+
"properties" : {
|
|
17809
|
+
"pinnedAgentIds" : {
|
|
17810
|
+
"items" : {
|
|
17811
|
+
"format" : "uuid",
|
|
17812
|
+
"type" : "string"
|
|
17813
|
+
},
|
|
17814
|
+
"type" : "array"
|
|
17815
|
+
},
|
|
17816
|
+
"railOpen" : {
|
|
17817
|
+
"type" : "boolean"
|
|
17818
|
+
}
|
|
17819
|
+
},
|
|
17820
|
+
"type" : "object"
|
|
17821
|
+
},
|
|
17822
|
+
"SetUserAgentConversationRequest" : {
|
|
17823
|
+
"properties" : {
|
|
17824
|
+
"conversationId" : {
|
|
17825
|
+
"format" : "uuid",
|
|
17826
|
+
"type" : "string"
|
|
17827
|
+
}
|
|
17828
|
+
},
|
|
17829
|
+
"required" : [ "conversationId" ],
|
|
17830
|
+
"type" : "object"
|
|
17831
|
+
},
|
|
17478
17832
|
"AgentChatOverviewEntry" : {
|
|
17479
17833
|
"description" : "État de la conversation d'un agent pour l'utilisateur courant. Le nombre de non-lus est dérivé des messages postérieurs à sa marque de lecture.",
|
|
17480
17834
|
"properties" : {
|
|
@@ -19826,6 +20180,162 @@
|
|
|
19826
20180
|
"required" : [ "status" ],
|
|
19827
20181
|
"type" : "object"
|
|
19828
20182
|
},
|
|
20183
|
+
"ToolCallsResponse" : {
|
|
20184
|
+
"additionalProperties" : false,
|
|
20185
|
+
"properties" : {
|
|
20186
|
+
"toolCalls" : {
|
|
20187
|
+
"items" : {
|
|
20188
|
+
"$ref" : "#/components/schemas/ToolCall"
|
|
20189
|
+
},
|
|
20190
|
+
"type" : "array"
|
|
20191
|
+
}
|
|
20192
|
+
},
|
|
20193
|
+
"required" : [ "toolCalls" ],
|
|
20194
|
+
"title" : "ToolCallsResponse",
|
|
20195
|
+
"type" : "object"
|
|
20196
|
+
},
|
|
20197
|
+
"ToolCall" : {
|
|
20198
|
+
"additionalProperties" : false,
|
|
20199
|
+
"description" : "A tool call whose result does not come from the server. The conversation turn stays suspended until a client posts the result, or until expiresAt passes.",
|
|
20200
|
+
"properties" : {
|
|
20201
|
+
"callId" : {
|
|
20202
|
+
"description" : "Identifier to post the result to.",
|
|
20203
|
+
"type" : "string"
|
|
20204
|
+
},
|
|
20205
|
+
"tool" : {
|
|
20206
|
+
"description" : "Name of the tool the model called.",
|
|
20207
|
+
"type" : "string"
|
|
20208
|
+
},
|
|
20209
|
+
"status" : {
|
|
20210
|
+
"description" : "pending and expired are set by the server; the others come from the client.",
|
|
20211
|
+
"enum" : [ "pending", "completed", "failed", "refused", "expired" ],
|
|
20212
|
+
"type" : "string"
|
|
20213
|
+
},
|
|
20214
|
+
"conversationId" : {
|
|
20215
|
+
"type" : "string"
|
|
20216
|
+
},
|
|
20217
|
+
"messageId" : {
|
|
20218
|
+
"description" : "Assistant message of the turn that issued the call.",
|
|
20219
|
+
"type" : "string"
|
|
20220
|
+
},
|
|
20221
|
+
"deviceId" : {
|
|
20222
|
+
"description" : "Target device, informative only. Authorization goes through the conversation.",
|
|
20223
|
+
"type" : "string"
|
|
20224
|
+
},
|
|
20225
|
+
"arguments" : {
|
|
20226
|
+
"additionalProperties" : true,
|
|
20227
|
+
"description" : "Arguments the model passed to the tool.",
|
|
20228
|
+
"type" : "object"
|
|
20229
|
+
},
|
|
20230
|
+
"createdAt" : {
|
|
20231
|
+
"format" : "date-time",
|
|
20232
|
+
"type" : "string"
|
|
20233
|
+
},
|
|
20234
|
+
"expiresAt" : {
|
|
20235
|
+
"description" : "Past this point the call is expired and the conversation turn is released.",
|
|
20236
|
+
"format" : "date-time",
|
|
20237
|
+
"type" : "string"
|
|
20238
|
+
}
|
|
20239
|
+
},
|
|
20240
|
+
"required" : [ "callId", "expiresAt", "status", "tool" ],
|
|
20241
|
+
"title" : "ToolCall",
|
|
20242
|
+
"type" : "object"
|
|
20243
|
+
},
|
|
20244
|
+
"ToolCallResultRequest" : {
|
|
20245
|
+
"additionalProperties" : false,
|
|
20246
|
+
"description" : "Result of a tool call, whatever the tool. output is handed to the model as the tool result; attachments are stored and added to the conversation context so the model can see them.",
|
|
20247
|
+
"properties" : {
|
|
20248
|
+
"status" : {
|
|
20249
|
+
"enum" : [ "completed", "failed", "refused" ],
|
|
20250
|
+
"type" : "string"
|
|
20251
|
+
},
|
|
20252
|
+
"output" : {
|
|
20253
|
+
"description" : "Text handed to the model. A default sentence is used when omitted.",
|
|
20254
|
+
"type" : "string"
|
|
20255
|
+
},
|
|
20256
|
+
"attachments" : {
|
|
20257
|
+
"description" : "Only read when status is completed.",
|
|
20258
|
+
"items" : {
|
|
20259
|
+
"$ref" : "#/components/schemas/ToolCallAttachment"
|
|
20260
|
+
},
|
|
20261
|
+
"maxItems" : 10,
|
|
20262
|
+
"type" : "array"
|
|
20263
|
+
},
|
|
20264
|
+
"error" : {
|
|
20265
|
+
"description" : "Failure detail, surfaced to the model when status is failed.",
|
|
20266
|
+
"type" : "string"
|
|
20267
|
+
}
|
|
20268
|
+
},
|
|
20269
|
+
"required" : [ "status" ],
|
|
20270
|
+
"title" : "ToolCallResultRequest",
|
|
20271
|
+
"type" : "object"
|
|
20272
|
+
},
|
|
20273
|
+
"ToolCallAttachment" : {
|
|
20274
|
+
"additionalProperties" : false,
|
|
20275
|
+
"description" : "A file produced by a tool. Either url or inlineDataUrl is required; every other field is derived server-side when omitted.",
|
|
20276
|
+
"properties" : {
|
|
20277
|
+
"type" : {
|
|
20278
|
+
"enum" : [ "image" ],
|
|
20279
|
+
"type" : "string"
|
|
20280
|
+
},
|
|
20281
|
+
"id" : {
|
|
20282
|
+
"type" : "string"
|
|
20283
|
+
},
|
|
20284
|
+
"name" : {
|
|
20285
|
+
"type" : "string"
|
|
20286
|
+
},
|
|
20287
|
+
"mimeType" : {
|
|
20288
|
+
"description" : "Defaults to image/png.",
|
|
20289
|
+
"type" : "string"
|
|
20290
|
+
},
|
|
20291
|
+
"ext" : {
|
|
20292
|
+
"description" : "Defaults to the mimeType subtype.",
|
|
20293
|
+
"type" : "string"
|
|
20294
|
+
},
|
|
20295
|
+
"size" : {
|
|
20296
|
+
"description" : "Defaults to the decoded payload length.",
|
|
20297
|
+
"type" : "number"
|
|
20298
|
+
},
|
|
20299
|
+
"key" : {
|
|
20300
|
+
"description" : "Storage key. Defaults to conversations/{conversationId}/attachments/{id}.{ext}.",
|
|
20301
|
+
"type" : "string"
|
|
20302
|
+
},
|
|
20303
|
+
"url" : {
|
|
20304
|
+
"description" : "Downloadable URL, fetched server-side. Used when inlineDataUrl is absent.",
|
|
20305
|
+
"type" : "string"
|
|
20306
|
+
},
|
|
20307
|
+
"inlineDataUrl" : {
|
|
20308
|
+
"description" : "Base64 data URL: data:<mimeType>;base64,<data>",
|
|
20309
|
+
"type" : "string"
|
|
20310
|
+
}
|
|
20311
|
+
},
|
|
20312
|
+
"title" : "ToolCallAttachment",
|
|
20313
|
+
"type" : "object"
|
|
20314
|
+
},
|
|
20315
|
+
"ToolCallResultResponse" : {
|
|
20316
|
+
"additionalProperties" : false,
|
|
20317
|
+
"properties" : {
|
|
20318
|
+
"callId" : {
|
|
20319
|
+
"type" : "string"
|
|
20320
|
+
},
|
|
20321
|
+
"tool" : {
|
|
20322
|
+
"type" : "string"
|
|
20323
|
+
},
|
|
20324
|
+
"status" : {
|
|
20325
|
+
"enum" : [ "completed", "failed", "refused" ],
|
|
20326
|
+
"type" : "string"
|
|
20327
|
+
},
|
|
20328
|
+
"conversationId" : {
|
|
20329
|
+
"type" : "string"
|
|
20330
|
+
},
|
|
20331
|
+
"messageId" : {
|
|
20332
|
+
"type" : "string"
|
|
20333
|
+
}
|
|
20334
|
+
},
|
|
20335
|
+
"required" : [ "callId", "conversationId", "messageId", "status", "tool" ],
|
|
20336
|
+
"title" : "ToolCallResultResponse",
|
|
20337
|
+
"type" : "object"
|
|
20338
|
+
},
|
|
19829
20339
|
"FillersArray" : {
|
|
19830
20340
|
"items" : {
|
|
19831
20341
|
"$ref" : "#/components/schemas/FillersArray_inner"
|