lemma-sdk 0.2.35 → 0.2.37
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/README.md +126 -43
- package/dist/browser/lemma-client.js +456 -169
- package/dist/client.d.ts +1 -2
- package/dist/client.js +1 -3
- package/dist/index.d.ts +1 -1
- package/dist/namespaces/agents.js +1 -1
- package/dist/namespaces/conversations.d.ts +73 -0
- package/dist/namespaces/conversations.js +174 -0
- package/dist/namespaces/files.d.ts +24 -6
- package/dist/namespaces/files.js +25 -12
- package/dist/namespaces/integrations.d.ts +10 -2
- package/dist/namespaces/integrations.js +17 -2
- package/dist/namespaces/pod-surfaces.d.ts +1 -1
- package/dist/namespaces/pod-surfaces.js +6 -6
- package/dist/namespaces/tasks.d.ts +1 -5
- package/dist/namespaces/tasks.js +54 -12
- package/dist/openapi_client/index.d.ts +27 -34
- package/dist/openapi_client/index.js +9 -12
- package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +2 -2
- package/dist/openapi_client/models/AgentListResponse.d.ts +2 -4
- package/dist/openapi_client/models/AgentMessageResponse.d.ts +0 -3
- package/dist/openapi_client/models/{AvailableModels.d.ts → AgentModelName.d.ts} +4 -1
- package/dist/openapi_client/models/AgentModelName.js +18 -0
- package/dist/openapi_client/models/AgentResponse.d.ts +18 -13
- package/dist/openapi_client/models/AgentSurfaceListResponse.d.ts +6 -0
- package/dist/openapi_client/models/{AssistantSurfaceResponse.d.ts → AgentSurfaceResponse.d.ts} +6 -5
- package/dist/openapi_client/models/{AssistantSurfaceStatus.d.ts → AgentSurfaceStatus.d.ts} +1 -1
- package/dist/openapi_client/models/AgentSurfaceStatus.js +10 -0
- package/dist/openapi_client/models/{ToolSet.d.ts → AgentToolset.d.ts} +3 -5
- package/dist/openapi_client/models/AgentToolset.js +17 -0
- package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +3 -5
- package/dist/openapi_client/models/ApplicationMode.d.ts +3 -3
- package/dist/openapi_client/models/ApplicationMode.js +3 -3
- package/dist/openapi_client/models/ConversationResponse.d.ts +9 -20
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +11 -7
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -8
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -5
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -2
- package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +1 -1
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +2 -2
- package/dist/openapi_client/models/FeedbackCategory.d.ts +7 -0
- package/dist/openapi_client/models/FeedbackCategory.js +12 -0
- package/dist/openapi_client/models/FileNamespace.d.ts +4 -0
- package/dist/openapi_client/models/FileNamespace.js +9 -0
- package/dist/openapi_client/models/FileResponse.d.ts +2 -2
- package/dist/openapi_client/models/FlowRunEntity.d.ts +11 -1
- package/dist/openapi_client/models/FunctionResponse.d.ts +2 -2
- package/dist/openapi_client/models/HarnessKind.d.ts +7 -0
- package/dist/openapi_client/models/HarnessKind.js +12 -0
- package/dist/openapi_client/models/IntegrationHelperAgentRequest.d.ts +13 -0
- package/dist/openapi_client/models/IntegrationHelperAgentResponse.d.ts +25 -0
- package/dist/openapi_client/models/MessageListResponse.d.ts +6 -0
- package/dist/openapi_client/models/MessageResponse.d.ts +17 -0
- package/dist/openapi_client/models/OperationDetail.d.ts +3 -0
- package/dist/openapi_client/models/OperationDetailsBatchRequest.d.ts +9 -0
- package/dist/openapi_client/models/OperationDetailsBatchResponse.d.ts +18 -0
- package/dist/openapi_client/models/OperationDiscoverResponse.d.ts +26 -0
- package/dist/openapi_client/models/OperationSummary.d.ts +3 -0
- package/dist/openapi_client/models/OrganizationCreateRequest.d.ts +2 -0
- package/dist/openapi_client/models/OrganizationInvitationRequest.d.ts +1 -0
- package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +4 -0
- package/dist/openapi_client/models/OrganizationMessageResponse.d.ts +1 -0
- package/dist/openapi_client/models/OrganizationResponse.d.ts +2 -0
- package/dist/openapi_client/models/OrganizationSlugAvailabilityResponse.d.ts +7 -0
- package/dist/openapi_client/models/ReportFeedbackRequest.d.ts +30 -0
- package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +25 -0
- package/dist/openapi_client/models/ResourceType.d.ts +0 -1
- package/dist/openapi_client/models/ResourceType.js +0 -1
- package/dist/openapi_client/models/SendMessageRequest.d.ts +5 -0
- package/dist/openapi_client/models/{ToolCallRequest.d.ts → ToolCallContent.d.ts} +1 -1
- package/dist/openapi_client/models/{ToolCallResponse.d.ts → ToolReturnContent.d.ts} +2 -1
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +11 -7
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -5
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -2
- package/dist/openapi_client/models/WorkflowInstallListResponse.d.ts +4 -0
- package/dist/openapi_client/models/app__modules__agent__domain__value_objects__TableAccessEntry.d.ts +8 -0
- package/dist/openapi_client/models/{TableAccessEntry.d.ts → app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/update.d.ts +2 -2
- package/dist/openapi_client/services/AgentConversationsService.d.ts +97 -0
- package/dist/openapi_client/services/AgentConversationsService.js +217 -0
- package/dist/openapi_client/services/{AssistantSurfacesIngressService.d.ts → AgentSurfacesIngressService.d.ts} +2 -2
- package/dist/openapi_client/services/{AssistantSurfacesIngressService.js → AgentSurfacesIngressService.js} +2 -2
- package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts} +11 -11
- package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js} +10 -10
- package/dist/openapi_client/services/AgentToolsService.d.ts +24 -4
- package/dist/openapi_client/services/AgentToolsService.js +40 -4
- package/dist/openapi_client/services/AgentsService.d.ts +7 -7
- package/dist/openapi_client/services/AgentsService.js +8 -8
- package/dist/openapi_client/services/ApplicationsService.d.ts +10 -9
- package/dist/openapi_client/services/ApplicationsService.js +11 -10
- package/dist/openapi_client/services/FilesService.d.ts +17 -8
- package/dist/openapi_client/services/FilesService.js +25 -8
- package/dist/openapi_client/services/IntegrationsService.d.ts +3 -2
- package/dist/openapi_client/services/IntegrationsService.js +4 -2
- package/dist/openapi_client/services/OrganizationsService.d.ts +18 -0
- package/dist/openapi_client/services/OrganizationsService.js +40 -0
- package/dist/openapi_client/services/WorkflowsService.d.ts +10 -0
- package/dist/openapi_client/services/WorkflowsService.js +21 -0
- package/dist/react/useAgentRun.d.ts +28 -7
- package/dist/react/useAgentRun.js +120 -27
- package/dist/react/useAssistantController.d.ts +6 -2
- package/dist/react/useAssistantController.js +57 -14
- package/dist/react/useAssistantSession.d.ts +15 -3
- package/dist/react/useAssistantSession.js +19 -15
- package/dist/react/useConversationMessages.d.ts +6 -2
- package/dist/react/useConversationMessages.js +2 -1
- package/dist/react/useConversations.d.ts +6 -2
- package/dist/react/useConversations.js +7 -5
- package/dist/react/useCreateFolder.d.ts +4 -2
- package/dist/react/useCreateFolder.js +6 -3
- package/dist/react/useDeleteFile.d.ts +4 -1
- package/dist/react/useDeleteFile.js +3 -3
- package/dist/react/useFile.d.ts +4 -2
- package/dist/react/useFile.js +3 -3
- package/dist/react/useFilePreview.d.ts +4 -1
- package/dist/react/useFilePreview.js +5 -4
- package/dist/react/useFileTree.d.ts +4 -2
- package/dist/react/useFileTree.js +3 -2
- package/dist/react/useFiles.d.ts +4 -2
- package/dist/react/useFiles.js +5 -3
- package/dist/react/useUpdateFile.d.ts +4 -2
- package/dist/react/useUpdateFile.js +6 -3
- package/dist/react/useUploadFile.d.ts +4 -2
- package/dist/react/useUploadFile.js +6 -3
- package/dist/react/useWorkflowRun.js +1 -1
- package/dist/react/useWorkflowStart.js +1 -1
- package/dist/run-utils.d.ts +2 -1
- package/dist/types.d.ts +62 -6
- package/package.json +1 -1
- package/dist/namespaces/assistants.d.ts +0 -96
- package/dist/namespaces/assistants.js +0 -160
- package/dist/openapi_client/models/AddMessageRequest.d.ts +0 -6
- package/dist/openapi_client/models/AppDescriptorResponse.d.ts +0 -5
- package/dist/openapi_client/models/AssistantListResponse.d.ts +0 -6
- package/dist/openapi_client/models/AssistantResponse.d.ts +0 -23
- package/dist/openapi_client/models/AssistantSurfaceListResponse.d.ts +0 -6
- package/dist/openapi_client/models/AssistantSurfaceStatus.js +0 -10
- package/dist/openapi_client/models/AvailableModelInfo.d.ts +0 -8
- package/dist/openapi_client/models/AvailableModels.js +0 -15
- package/dist/openapi_client/models/AvailableModelsListResponse.d.ts +0 -7
- package/dist/openapi_client/models/ConversationMessageListResponse.d.ts +0 -6
- package/dist/openapi_client/models/ConversationMessageResponse.d.ts +0 -19
- package/dist/openapi_client/models/ConversationStatus.d.ts +0 -7
- package/dist/openapi_client/models/ConversationStatus.js +0 -12
- package/dist/openapi_client/models/ConversationType.d.ts +0 -8
- package/dist/openapi_client/models/ConversationType.js +0 -13
- package/dist/openapi_client/models/CreateAssistantRequest.d.ts +0 -18
- package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
- package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
- package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
- package/dist/openapi_client/models/FileVisibility.js +0 -9
- package/dist/openapi_client/models/OperationListResponse.d.ts +0 -6
- package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
- package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
- package/dist/openapi_client/models/TaskMessageResponse.d.ts +0 -15
- package/dist/openapi_client/models/TaskResponse.d.ts +0 -16
- package/dist/openapi_client/models/TaskResponse.js +0 -1
- package/dist/openapi_client/models/TaskStatus.d.ts +0 -12
- package/dist/openapi_client/models/TaskStatus.js +0 -17
- package/dist/openapi_client/models/ToolCallRequest.js +0 -1
- package/dist/openapi_client/models/ToolCallResponse.js +0 -1
- package/dist/openapi_client/models/ToolSet.js +0 -19
- package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +0 -17
- package/dist/openapi_client/models/UpdateAssistantRequest.js +0 -1
- package/dist/openapi_client/services/AssistantsService.d.ts +0 -49
- package/dist/openapi_client/services/AssistantsService.js +0 -112
- package/dist/openapi_client/services/ConversationsService.d.ts +0 -88
- package/dist/openapi_client/services/ConversationsService.js +0 -202
- package/dist/openapi_client/services/TasksService.d.ts +0 -76
- package/dist/openapi_client/services/TasksService.js +0 -167
- /package/dist/openapi_client/models/{AddMessageRequest.js → AgentSurfaceListResponse.js} +0 -0
- /package/dist/openapi_client/models/{AppDescriptorResponse.js → AgentSurfaceResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantListResponse.js → IntegrationHelperAgentRequest.js} +0 -0
- /package/dist/openapi_client/models/{AssistantResponse.js → IntegrationHelperAgentResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageListResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → MessageResponse.js} +0 -0
- /package/dist/openapi_client/models/{AvailableModelInfo.js → OperationDetailsBatchRequest.js} +0 -0
- /package/dist/openapi_client/models/{AvailableModelsListResponse.js → OperationDetailsBatchResponse.js} +0 -0
- /package/dist/openapi_client/models/{ConversationMessageListResponse.js → OperationDiscoverResponse.js} +0 -0
- /package/dist/openapi_client/models/{ConversationMessageResponse.js → OrganizationSlugAvailabilityResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateAssistantRequest.js → ReportFeedbackRequest.js} +0 -0
- /package/dist/openapi_client/models/{CreateMessageRequest.js → ReportFeedbackResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateTaskRequest.js → SendMessageRequest.js} +0 -0
- /package/dist/openapi_client/models/{OperationListResponse.js → ToolCallContent.js} +0 -0
- /package/dist/openapi_client/models/{TableAccessEntry.js → ToolReturnContent.js} +0 -0
- /package/dist/openapi_client/models/{TaskListResponse.js → WorkflowInstallListResponse.js} +0 -0
- /package/dist/openapi_client/models/{TaskMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{TaskMessageResponse.js → app__modules__function__api__schemas__function_schemas__TableAccessEntry.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FileNamespace } from './FileNamespace.js';
|
|
2
2
|
export type update = {
|
|
3
3
|
data?: (string | null);
|
|
4
4
|
description?: (string | null);
|
|
5
|
+
namespace?: (FileNamespace | null);
|
|
5
6
|
new_path?: (string | null);
|
|
6
7
|
path: string;
|
|
7
8
|
search_enabled?: (boolean | null);
|
|
8
|
-
visibility?: (FileVisibility | null);
|
|
9
9
|
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { ConversationListResponse } from '../models/ConversationListResponse.js';
|
|
2
|
+
import type { ConversationResponse } from '../models/ConversationResponse.js';
|
|
3
|
+
import type { CreateConversationRequest } from '../models/CreateConversationRequest.js';
|
|
4
|
+
import type { MessageListResponse } from '../models/MessageListResponse.js';
|
|
5
|
+
import type { SendMessageRequest } from '../models/SendMessageRequest.js';
|
|
6
|
+
import type { UpdateConversationRequest } from '../models/UpdateConversationRequest.js';
|
|
7
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
|
+
export declare class AgentConversationsService {
|
|
9
|
+
/**
|
|
10
|
+
* List Pod Agent Conversations
|
|
11
|
+
* List root conversations for the current user in a pod. Use agent_name to list conversations for a specific pod agent; omit it to list default pod assistant conversations. Child conversations are omitted from this root list.
|
|
12
|
+
* @param podId
|
|
13
|
+
* @param agentName
|
|
14
|
+
* @param pageToken
|
|
15
|
+
* @param limit
|
|
16
|
+
* @returns ConversationListResponse Successful Response
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
static agentConversationList(podId: string, agentName?: (string | null), pageToken?: (string | null), limit?: number): CancelablePromise<ConversationListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Create Pod Agent Conversation
|
|
22
|
+
* Create a new pod-scoped conversation. When agent_name is omitted, the conversation uses the default pod assistant. Workflow and sub-agent executions also use conversations as their external execution handle.
|
|
23
|
+
* @param podId
|
|
24
|
+
* @param requestBody
|
|
25
|
+
* @returns ConversationResponse Successful Response
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static agentConversationCreate(podId: string, requestBody: CreateConversationRequest): CancelablePromise<ConversationResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Send Pod Conversation Message
|
|
31
|
+
* Create or continue a pod-scoped assistant or agent conversation and stream runtime events over Server-Sent Events until the active run completes. Provide agent_name to target a pod agent; omit it for the default pod assistant.
|
|
32
|
+
* @param podId
|
|
33
|
+
* @param requestBody
|
|
34
|
+
* @returns any Successful Response
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
static agentConversationMessageSendOrCreate(podId: string, requestBody: SendMessageRequest): CancelablePromise<any>;
|
|
38
|
+
/**
|
|
39
|
+
* Get Pod Conversation
|
|
40
|
+
* Get a single pod-scoped assistant or agent conversation by id.
|
|
41
|
+
* @param podId
|
|
42
|
+
* @param conversationId
|
|
43
|
+
* @returns ConversationResponse Successful Response
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
static agentConversationGet(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Update Pod Conversation
|
|
49
|
+
* Update mutable conversation settings for a pod-scoped conversation. The conversation model is used by future runs; message sends do not carry per-request model overrides.
|
|
50
|
+
* @param podId
|
|
51
|
+
* @param conversationId
|
|
52
|
+
* @param requestBody
|
|
53
|
+
* @returns ConversationResponse Successful Response
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static agentConversationUpdate(podId: string, conversationId: string, requestBody: UpdateConversationRequest): CancelablePromise<ConversationResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* List Pod Conversation Messages
|
|
59
|
+
* List persisted messages in a pod-scoped conversation in sequence order.
|
|
60
|
+
* @param podId
|
|
61
|
+
* @param conversationId
|
|
62
|
+
* @param afterSequence
|
|
63
|
+
* @param limit
|
|
64
|
+
* @returns MessageListResponse Successful Response
|
|
65
|
+
* @throws ApiError
|
|
66
|
+
*/
|
|
67
|
+
static agentConversationMessageList(podId: string, conversationId: string, afterSequence?: (number | null), limit?: number): CancelablePromise<MessageListResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Send Pod Conversation Message
|
|
70
|
+
* Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active run completes. User messages can also be appended while a run is already active; the next harness step sees the new message in persisted history.
|
|
71
|
+
* @param podId
|
|
72
|
+
* @param conversationId
|
|
73
|
+
* @param requestBody
|
|
74
|
+
* @returns any Successful Response
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static agentConversationMessageSend(podId: string, conversationId: string, requestBody: SendMessageRequest): CancelablePromise<any>;
|
|
78
|
+
/**
|
|
79
|
+
* Stop Pod Conversation
|
|
80
|
+
* Request cancellation of the active internal run for a conversation.
|
|
81
|
+
* @param podId
|
|
82
|
+
* @param conversationId
|
|
83
|
+
* @returns ConversationResponse Successful Response
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static agentConversationStop(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Stream Pod Conversation
|
|
89
|
+
* Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active run. Optionally filter to a specific internal run id for reconnects.
|
|
90
|
+
* @param podId
|
|
91
|
+
* @param conversationId
|
|
92
|
+
* @param agentRunId
|
|
93
|
+
* @returns any Successful Response
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
static agentConversationStream(podId: string, conversationId: string, agentRunId?: (string | null)): CancelablePromise<any>;
|
|
97
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class AgentConversationsService {
|
|
4
|
+
/**
|
|
5
|
+
* List Pod Agent Conversations
|
|
6
|
+
* List root conversations for the current user in a pod. Use agent_name to list conversations for a specific pod agent; omit it to list default pod assistant conversations. Child conversations are omitted from this root list.
|
|
7
|
+
* @param podId
|
|
8
|
+
* @param agentName
|
|
9
|
+
* @param pageToken
|
|
10
|
+
* @param limit
|
|
11
|
+
* @returns ConversationListResponse Successful Response
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static agentConversationList(podId, agentName, pageToken, limit = 20) {
|
|
15
|
+
return __request(OpenAPI, {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '/pods/{pod_id}/conversations',
|
|
18
|
+
path: {
|
|
19
|
+
'pod_id': podId,
|
|
20
|
+
},
|
|
21
|
+
query: {
|
|
22
|
+
'agent_name': agentName,
|
|
23
|
+
'page_token': pageToken,
|
|
24
|
+
'limit': limit,
|
|
25
|
+
},
|
|
26
|
+
errors: {
|
|
27
|
+
422: `Validation Error`,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Create Pod Agent Conversation
|
|
33
|
+
* Create a new pod-scoped conversation. When agent_name is omitted, the conversation uses the default pod assistant. Workflow and sub-agent executions also use conversations as their external execution handle.
|
|
34
|
+
* @param podId
|
|
35
|
+
* @param requestBody
|
|
36
|
+
* @returns ConversationResponse Successful Response
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static agentConversationCreate(podId, requestBody) {
|
|
40
|
+
return __request(OpenAPI, {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
url: '/pods/{pod_id}/conversations',
|
|
43
|
+
path: {
|
|
44
|
+
'pod_id': podId,
|
|
45
|
+
},
|
|
46
|
+
body: requestBody,
|
|
47
|
+
mediaType: 'application/json',
|
|
48
|
+
errors: {
|
|
49
|
+
422: `Validation Error`,
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Send Pod Conversation Message
|
|
55
|
+
* Create or continue a pod-scoped assistant or agent conversation and stream runtime events over Server-Sent Events until the active run completes. Provide agent_name to target a pod agent; omit it for the default pod assistant.
|
|
56
|
+
* @param podId
|
|
57
|
+
* @param requestBody
|
|
58
|
+
* @returns any Successful Response
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
static agentConversationMessageSendOrCreate(podId, requestBody) {
|
|
62
|
+
return __request(OpenAPI, {
|
|
63
|
+
method: 'POST',
|
|
64
|
+
url: '/pods/{pod_id}/conversations/messages',
|
|
65
|
+
path: {
|
|
66
|
+
'pod_id': podId,
|
|
67
|
+
},
|
|
68
|
+
body: requestBody,
|
|
69
|
+
mediaType: 'application/json',
|
|
70
|
+
errors: {
|
|
71
|
+
422: `Validation Error`,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get Pod Conversation
|
|
77
|
+
* Get a single pod-scoped assistant or agent conversation by id.
|
|
78
|
+
* @param podId
|
|
79
|
+
* @param conversationId
|
|
80
|
+
* @returns ConversationResponse Successful Response
|
|
81
|
+
* @throws ApiError
|
|
82
|
+
*/
|
|
83
|
+
static agentConversationGet(podId, conversationId) {
|
|
84
|
+
return __request(OpenAPI, {
|
|
85
|
+
method: 'GET',
|
|
86
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}',
|
|
87
|
+
path: {
|
|
88
|
+
'pod_id': podId,
|
|
89
|
+
'conversation_id': conversationId,
|
|
90
|
+
},
|
|
91
|
+
errors: {
|
|
92
|
+
422: `Validation Error`,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Update Pod Conversation
|
|
98
|
+
* Update mutable conversation settings for a pod-scoped conversation. The conversation model is used by future runs; message sends do not carry per-request model overrides.
|
|
99
|
+
* @param podId
|
|
100
|
+
* @param conversationId
|
|
101
|
+
* @param requestBody
|
|
102
|
+
* @returns ConversationResponse Successful Response
|
|
103
|
+
* @throws ApiError
|
|
104
|
+
*/
|
|
105
|
+
static agentConversationUpdate(podId, conversationId, requestBody) {
|
|
106
|
+
return __request(OpenAPI, {
|
|
107
|
+
method: 'PATCH',
|
|
108
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}',
|
|
109
|
+
path: {
|
|
110
|
+
'pod_id': podId,
|
|
111
|
+
'conversation_id': conversationId,
|
|
112
|
+
},
|
|
113
|
+
body: requestBody,
|
|
114
|
+
mediaType: 'application/json',
|
|
115
|
+
errors: {
|
|
116
|
+
422: `Validation Error`,
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* List Pod Conversation Messages
|
|
122
|
+
* List persisted messages in a pod-scoped conversation in sequence order.
|
|
123
|
+
* @param podId
|
|
124
|
+
* @param conversationId
|
|
125
|
+
* @param afterSequence
|
|
126
|
+
* @param limit
|
|
127
|
+
* @returns MessageListResponse Successful Response
|
|
128
|
+
* @throws ApiError
|
|
129
|
+
*/
|
|
130
|
+
static agentConversationMessageList(podId, conversationId, afterSequence, limit = 100) {
|
|
131
|
+
return __request(OpenAPI, {
|
|
132
|
+
method: 'GET',
|
|
133
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}/messages',
|
|
134
|
+
path: {
|
|
135
|
+
'pod_id': podId,
|
|
136
|
+
'conversation_id': conversationId,
|
|
137
|
+
},
|
|
138
|
+
query: {
|
|
139
|
+
'after_sequence': afterSequence,
|
|
140
|
+
'limit': limit,
|
|
141
|
+
},
|
|
142
|
+
errors: {
|
|
143
|
+
422: `Validation Error`,
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Send Pod Conversation Message
|
|
149
|
+
* Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active run completes. User messages can also be appended while a run is already active; the next harness step sees the new message in persisted history.
|
|
150
|
+
* @param podId
|
|
151
|
+
* @param conversationId
|
|
152
|
+
* @param requestBody
|
|
153
|
+
* @returns any Successful Response
|
|
154
|
+
* @throws ApiError
|
|
155
|
+
*/
|
|
156
|
+
static agentConversationMessageSend(podId, conversationId, requestBody) {
|
|
157
|
+
return __request(OpenAPI, {
|
|
158
|
+
method: 'POST',
|
|
159
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}/messages',
|
|
160
|
+
path: {
|
|
161
|
+
'pod_id': podId,
|
|
162
|
+
'conversation_id': conversationId,
|
|
163
|
+
},
|
|
164
|
+
body: requestBody,
|
|
165
|
+
mediaType: 'application/json',
|
|
166
|
+
errors: {
|
|
167
|
+
422: `Validation Error`,
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Stop Pod Conversation
|
|
173
|
+
* Request cancellation of the active internal run for a conversation.
|
|
174
|
+
* @param podId
|
|
175
|
+
* @param conversationId
|
|
176
|
+
* @returns ConversationResponse Successful Response
|
|
177
|
+
* @throws ApiError
|
|
178
|
+
*/
|
|
179
|
+
static agentConversationStop(podId, conversationId) {
|
|
180
|
+
return __request(OpenAPI, {
|
|
181
|
+
method: 'POST',
|
|
182
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}/stop',
|
|
183
|
+
path: {
|
|
184
|
+
'pod_id': podId,
|
|
185
|
+
'conversation_id': conversationId,
|
|
186
|
+
},
|
|
187
|
+
errors: {
|
|
188
|
+
422: `Validation Error`,
|
|
189
|
+
},
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Stream Pod Conversation
|
|
194
|
+
* Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active run. Optionally filter to a specific internal run id for reconnects.
|
|
195
|
+
* @param podId
|
|
196
|
+
* @param conversationId
|
|
197
|
+
* @param agentRunId
|
|
198
|
+
* @returns any Successful Response
|
|
199
|
+
* @throws ApiError
|
|
200
|
+
*/
|
|
201
|
+
static agentConversationStream(podId, conversationId, agentRunId) {
|
|
202
|
+
return __request(OpenAPI, {
|
|
203
|
+
method: 'GET',
|
|
204
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}/stream',
|
|
205
|
+
path: {
|
|
206
|
+
'pod_id': podId,
|
|
207
|
+
'conversation_id': conversationId,
|
|
208
|
+
},
|
|
209
|
+
query: {
|
|
210
|
+
'agent_run_id': agentRunId,
|
|
211
|
+
},
|
|
212
|
+
errors: {
|
|
213
|
+
422: `Validation Error`,
|
|
214
|
+
},
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class AgentSurfacesIngressService {
|
|
3
3
|
/**
|
|
4
4
|
* Teams Admin Consent Callback
|
|
5
5
|
* @param tenant
|
|
@@ -10,7 +10,7 @@ export declare class AssistantSurfacesIngressService {
|
|
|
10
10
|
* @returns any Successful Response
|
|
11
11
|
* @throws ApiError
|
|
12
12
|
*/
|
|
13
|
-
static
|
|
13
|
+
static agentSurfaceTeamsAdminConsentCallback(tenant?: (string | null), adminConsent?: (string | null), state?: (string | null), error?: (string | null), errorDescription?: (string | null)): CancelablePromise<any>;
|
|
14
14
|
/**
|
|
15
15
|
* Handle per-surface webhook verification
|
|
16
16
|
* @param surfaceId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
-
export class
|
|
3
|
+
export class AgentSurfacesIngressService {
|
|
4
4
|
/**
|
|
5
5
|
* Teams Admin Consent Callback
|
|
6
6
|
* @param tenant
|
|
@@ -11,7 +11,7 @@ export class AssistantSurfacesIngressService {
|
|
|
11
11
|
* @returns any Successful Response
|
|
12
12
|
* @throws ApiError
|
|
13
13
|
*/
|
|
14
|
-
static
|
|
14
|
+
static agentSurfaceTeamsAdminConsentCallback(tenant, adminConsent, state, error, errorDescription) {
|
|
15
15
|
return __request(OpenAPI, {
|
|
16
16
|
method: 'GET',
|
|
17
17
|
url: '/surfaces/teams/admin-consent/callback',
|
package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { AdminConsentInfoResponse } from '../models/AdminConsentInfoResponse.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AgentSurfaceListResponse } from '../models/AgentSurfaceListResponse.js';
|
|
3
3
|
import type { CreateSurfaceRequest } from '../models/CreateSurfaceRequest.js';
|
|
4
4
|
import type { SurfacePlatformSetupGuideResponse } from '../models/SurfacePlatformSetupGuideResponse.js';
|
|
5
5
|
import type { ToggleSurfaceRequest } from '../models/ToggleSurfaceRequest.js';
|
|
6
6
|
import type { UpdateSurfaceRequest } from '../models/UpdateSurfaceRequest.js';
|
|
7
7
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class AgentSurfacesService {
|
|
9
9
|
/**
|
|
10
10
|
* List Surfaces
|
|
11
11
|
* @param podId
|
|
12
12
|
* @param limit
|
|
13
13
|
* @param pageToken
|
|
14
|
-
* @returns
|
|
14
|
+
* @returns AgentSurfaceListResponse Successful Response
|
|
15
15
|
* @throws ApiError
|
|
16
16
|
*/
|
|
17
|
-
static
|
|
17
|
+
static agentSurfaceList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<AgentSurfaceListResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Create Surface
|
|
20
20
|
* @param podId
|
|
@@ -22,7 +22,7 @@ export declare class AssistantSurfacesService {
|
|
|
22
22
|
* @returns any Successful Response
|
|
23
23
|
* @throws ApiError
|
|
24
24
|
*/
|
|
25
|
-
static
|
|
25
|
+
static agentSurfaceCreate(podId: string, requestBody: CreateSurfaceRequest): CancelablePromise<any>;
|
|
26
26
|
/**
|
|
27
27
|
* Get Surface Platform Checklist
|
|
28
28
|
* @param podId
|
|
@@ -30,7 +30,7 @@ export declare class AssistantSurfacesService {
|
|
|
30
30
|
* @returns SurfacePlatformSetupGuideResponse Successful Response
|
|
31
31
|
* @throws ApiError
|
|
32
32
|
*/
|
|
33
|
-
static
|
|
33
|
+
static agentSurfacePlatformChecklist(podId: string, platform: string): CancelablePromise<SurfacePlatformSetupGuideResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Get Surface
|
|
36
36
|
* @param podId
|
|
@@ -38,7 +38,7 @@ export declare class AssistantSurfacesService {
|
|
|
38
38
|
* @returns any Successful Response
|
|
39
39
|
* @throws ApiError
|
|
40
40
|
*/
|
|
41
|
-
static
|
|
41
|
+
static agentSurfaceGet(podId: string, surfaceId: string): CancelablePromise<any>;
|
|
42
42
|
/**
|
|
43
43
|
* Update Surface
|
|
44
44
|
* @param podId
|
|
@@ -47,7 +47,7 @@ export declare class AssistantSurfacesService {
|
|
|
47
47
|
* @returns any Successful Response
|
|
48
48
|
* @throws ApiError
|
|
49
49
|
*/
|
|
50
|
-
static
|
|
50
|
+
static agentSurfaceUpdate(podId: string, surfaceId: string, requestBody: UpdateSurfaceRequest): CancelablePromise<any>;
|
|
51
51
|
/**
|
|
52
52
|
* Get Admin Consent Info
|
|
53
53
|
* @param podId
|
|
@@ -55,7 +55,7 @@ export declare class AssistantSurfacesService {
|
|
|
55
55
|
* @returns AdminConsentInfoResponse Successful Response
|
|
56
56
|
* @throws ApiError
|
|
57
57
|
*/
|
|
58
|
-
static
|
|
58
|
+
static agentSurfaceAdminConsentInfo(podId: string, surfaceId: string): CancelablePromise<AdminConsentInfoResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Toggle Surface
|
|
61
61
|
* @param podId
|
|
@@ -64,7 +64,7 @@ export declare class AssistantSurfacesService {
|
|
|
64
64
|
* @returns any Successful Response
|
|
65
65
|
* @throws ApiError
|
|
66
66
|
*/
|
|
67
|
-
static
|
|
67
|
+
static agentSurfaceToggle(podId: string, surfaceId: string, requestBody: ToggleSurfaceRequest): CancelablePromise<any>;
|
|
68
68
|
/**
|
|
69
69
|
* Get Webhook Url
|
|
70
70
|
* @param podId
|
|
@@ -72,5 +72,5 @@ export declare class AssistantSurfacesService {
|
|
|
72
72
|
* @returns any Successful Response
|
|
73
73
|
* @throws ApiError
|
|
74
74
|
*/
|
|
75
|
-
static
|
|
75
|
+
static agentSurfaceWebhookUrl(podId: string, surfaceId: string): CancelablePromise<any>;
|
|
76
76
|
}
|
package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
-
export class
|
|
3
|
+
export class AgentSurfacesService {
|
|
4
4
|
/**
|
|
5
5
|
* List Surfaces
|
|
6
6
|
* @param podId
|
|
7
7
|
* @param limit
|
|
8
8
|
* @param pageToken
|
|
9
|
-
* @returns
|
|
9
|
+
* @returns AgentSurfaceListResponse Successful Response
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
12
|
-
static
|
|
12
|
+
static agentSurfaceList(podId, limit = 100, pageToken) {
|
|
13
13
|
return __request(OpenAPI, {
|
|
14
14
|
method: 'GET',
|
|
15
15
|
url: '/pods/{pod_id}/surfaces',
|
|
@@ -32,7 +32,7 @@ export class AssistantSurfacesService {
|
|
|
32
32
|
* @returns any Successful Response
|
|
33
33
|
* @throws ApiError
|
|
34
34
|
*/
|
|
35
|
-
static
|
|
35
|
+
static agentSurfaceCreate(podId, requestBody) {
|
|
36
36
|
return __request(OpenAPI, {
|
|
37
37
|
method: 'POST',
|
|
38
38
|
url: '/pods/{pod_id}/surfaces',
|
|
@@ -53,7 +53,7 @@ export class AssistantSurfacesService {
|
|
|
53
53
|
* @returns SurfacePlatformSetupGuideResponse Successful Response
|
|
54
54
|
* @throws ApiError
|
|
55
55
|
*/
|
|
56
|
-
static
|
|
56
|
+
static agentSurfacePlatformChecklist(podId, platform) {
|
|
57
57
|
return __request(OpenAPI, {
|
|
58
58
|
method: 'GET',
|
|
59
59
|
url: '/pods/{pod_id}/surfaces/platforms/{platform}/checklist',
|
|
@@ -73,7 +73,7 @@ export class AssistantSurfacesService {
|
|
|
73
73
|
* @returns any Successful Response
|
|
74
74
|
* @throws ApiError
|
|
75
75
|
*/
|
|
76
|
-
static
|
|
76
|
+
static agentSurfaceGet(podId, surfaceId) {
|
|
77
77
|
return __request(OpenAPI, {
|
|
78
78
|
method: 'GET',
|
|
79
79
|
url: '/pods/{pod_id}/surfaces/{surface_id}',
|
|
@@ -94,7 +94,7 @@ export class AssistantSurfacesService {
|
|
|
94
94
|
* @returns any Successful Response
|
|
95
95
|
* @throws ApiError
|
|
96
96
|
*/
|
|
97
|
-
static
|
|
97
|
+
static agentSurfaceUpdate(podId, surfaceId, requestBody) {
|
|
98
98
|
return __request(OpenAPI, {
|
|
99
99
|
method: 'PATCH',
|
|
100
100
|
url: '/pods/{pod_id}/surfaces/{surface_id}',
|
|
@@ -116,7 +116,7 @@ export class AssistantSurfacesService {
|
|
|
116
116
|
* @returns AdminConsentInfoResponse Successful Response
|
|
117
117
|
* @throws ApiError
|
|
118
118
|
*/
|
|
119
|
-
static
|
|
119
|
+
static agentSurfaceAdminConsentInfo(podId, surfaceId) {
|
|
120
120
|
return __request(OpenAPI, {
|
|
121
121
|
method: 'GET',
|
|
122
122
|
url: '/pods/{pod_id}/surfaces/{surface_id}/admin-consent',
|
|
@@ -137,7 +137,7 @@ export class AssistantSurfacesService {
|
|
|
137
137
|
* @returns any Successful Response
|
|
138
138
|
* @throws ApiError
|
|
139
139
|
*/
|
|
140
|
-
static
|
|
140
|
+
static agentSurfaceToggle(podId, surfaceId, requestBody) {
|
|
141
141
|
return __request(OpenAPI, {
|
|
142
142
|
method: 'PATCH',
|
|
143
143
|
url: '/pods/{pod_id}/surfaces/{surface_id}/toggle',
|
|
@@ -159,7 +159,7 @@ export class AssistantSurfacesService {
|
|
|
159
159
|
* @returns any Successful Response
|
|
160
160
|
* @throws ApiError
|
|
161
161
|
*/
|
|
162
|
-
static
|
|
162
|
+
static agentSurfaceWebhookUrl(podId, surfaceId) {
|
|
163
163
|
return __request(OpenAPI, {
|
|
164
164
|
method: 'GET',
|
|
165
165
|
url: '/pods/{pod_id}/surfaces/{surface_id}/webhook-url',
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { IntegrationHelperAgentRequest } from '../models/IntegrationHelperAgentRequest.js';
|
|
2
|
+
import type { IntegrationHelperAgentResponse } from '../models/IntegrationHelperAgentResponse.js';
|
|
3
|
+
import type { ReportFeedbackRequest } from '../models/ReportFeedbackRequest.js';
|
|
4
|
+
import type { ReportFeedbackResponse } from '../models/ReportFeedbackResponse.js';
|
|
1
5
|
import type { WebSearchAgentRequest } from '../models/WebSearchAgentRequest.js';
|
|
2
6
|
import type { WebSearchAgentResponse } from '../models/WebSearchAgentResponse.js';
|
|
3
7
|
import type { WebSearchRequest } from '../models/WebSearchRequest.js';
|
|
@@ -5,19 +9,35 @@ import type { WebSearchResponse } from '../models/WebSearchResponse.js';
|
|
|
5
9
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
10
|
export declare class AgentToolsService {
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Agent Integration Helper Agent
|
|
13
|
+
* Plan how to use one or more integration applications for a goal and return recommended operations.
|
|
14
|
+
* @param requestBody
|
|
15
|
+
* @returns IntegrationHelperAgentResponse Successful Response
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static agentToolIntegrationHelperAgent(requestBody: IntegrationHelperAgentRequest): CancelablePromise<IntegrationHelperAgentResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Agent Report Feedback
|
|
21
|
+
* Record a maintainer-facing feedback report about system issues, skill issues, incorrect knowledge, or other unexpected behavior.
|
|
22
|
+
* @param requestBody
|
|
23
|
+
* @returns ReportFeedbackResponse Successful Response
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static agentToolReportFeedback(requestBody: ReportFeedbackRequest): CancelablePromise<ReportFeedbackResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Agent Web Search
|
|
9
29
|
* Run a raw web search and return structured results.
|
|
10
30
|
* @param requestBody
|
|
11
31
|
* @returns WebSearchResponse Successful Response
|
|
12
32
|
* @throws ApiError
|
|
13
33
|
*/
|
|
14
|
-
static
|
|
34
|
+
static agentToolWebSearch(requestBody: WebSearchRequest): CancelablePromise<WebSearchResponse>;
|
|
15
35
|
/**
|
|
16
|
-
* Web Search Agent
|
|
36
|
+
* Agent Web Search Agent
|
|
17
37
|
* Run the multi-step web search agent and return a synthesized answer.
|
|
18
38
|
* @param requestBody
|
|
19
39
|
* @returns WebSearchAgentResponse Successful Response
|
|
20
40
|
* @throws ApiError
|
|
21
41
|
*/
|
|
22
|
-
static
|
|
42
|
+
static agentToolWebSearchAgent(requestBody: WebSearchAgentRequest): CancelablePromise<WebSearchAgentResponse>;
|
|
23
43
|
}
|
|
@@ -2,13 +2,49 @@ import { OpenAPI } from '../core/OpenAPI.js';
|
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class AgentToolsService {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Agent Integration Helper Agent
|
|
6
|
+
* Plan how to use one or more integration applications for a goal and return recommended operations.
|
|
7
|
+
* @param requestBody
|
|
8
|
+
* @returns IntegrationHelperAgentResponse Successful Response
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static agentToolIntegrationHelperAgent(requestBody) {
|
|
12
|
+
return __request(OpenAPI, {
|
|
13
|
+
method: 'POST',
|
|
14
|
+
url: '/tools/integration-helper-agent',
|
|
15
|
+
body: requestBody,
|
|
16
|
+
mediaType: 'application/json',
|
|
17
|
+
errors: {
|
|
18
|
+
422: `Validation Error`,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Agent Report Feedback
|
|
24
|
+
* Record a maintainer-facing feedback report about system issues, skill issues, incorrect knowledge, or other unexpected behavior.
|
|
25
|
+
* @param requestBody
|
|
26
|
+
* @returns ReportFeedbackResponse Successful Response
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static agentToolReportFeedback(requestBody) {
|
|
30
|
+
return __request(OpenAPI, {
|
|
31
|
+
method: 'POST',
|
|
32
|
+
url: '/tools/report-feedback',
|
|
33
|
+
body: requestBody,
|
|
34
|
+
mediaType: 'application/json',
|
|
35
|
+
errors: {
|
|
36
|
+
422: `Validation Error`,
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Agent Web Search
|
|
6
42
|
* Run a raw web search and return structured results.
|
|
7
43
|
* @param requestBody
|
|
8
44
|
* @returns WebSearchResponse Successful Response
|
|
9
45
|
* @throws ApiError
|
|
10
46
|
*/
|
|
11
|
-
static
|
|
47
|
+
static agentToolWebSearch(requestBody) {
|
|
12
48
|
return __request(OpenAPI, {
|
|
13
49
|
method: 'POST',
|
|
14
50
|
url: '/tools/web-search',
|
|
@@ -20,13 +56,13 @@ export class AgentToolsService {
|
|
|
20
56
|
});
|
|
21
57
|
}
|
|
22
58
|
/**
|
|
23
|
-
* Web Search Agent
|
|
59
|
+
* Agent Web Search Agent
|
|
24
60
|
* Run the multi-step web search agent and return a synthesized answer.
|
|
25
61
|
* @param requestBody
|
|
26
62
|
* @returns WebSearchAgentResponse Successful Response
|
|
27
63
|
* @throws ApiError
|
|
28
64
|
*/
|
|
29
|
-
static
|
|
65
|
+
static agentToolWebSearchAgent(requestBody) {
|
|
30
66
|
return __request(OpenAPI, {
|
|
31
67
|
method: 'POST',
|
|
32
68
|
url: '/tools/web-search-agent',
|