lemma-sdk 0.2.36 → 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 +28 -22
- package/dist/browser/lemma-client.js +290 -165
- 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.js +1 -1
- 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 +17 -32
- package/dist/openapi_client/index.js +8 -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/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 +10 -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/MessageListResponse.d.ts +6 -0
- package/dist/openapi_client/models/MessageResponse.d.ts +17 -0
- package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +1 -0
- package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +0 -4
- 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/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 +8 -8
- package/dist/openapi_client/services/AgentToolsService.js +8 -8
- package/dist/openapi_client/services/AgentsService.d.ts +7 -7
- package/dist/openapi_client/services/AgentsService.js +8 -8
- package/dist/openapi_client/services/FilesService.d.ts +17 -8
- package/dist/openapi_client/services/FilesService.js +25 -8
- package/dist/openapi_client/services/WorkflowsService.d.ts +1 -1
- package/dist/openapi_client/services/WorkflowsService.js +1 -1
- 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/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/CreateAssistantRequest.js +0 -1
- package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
- package/dist/openapi_client/models/CreateMessageRequest.js +0 -1
- package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
- package/dist/openapi_client/models/CreateTaskRequest.js +0 -1
- package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
- package/dist/openapi_client/models/FileVisibility.js +0 -9
- package/dist/openapi_client/models/TableAccessEntry.js +0 -1
- package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
- package/dist/openapi_client/models/TaskListResponse.js +0 -1
- package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
- package/dist/openapi_client/models/TaskMessageListResponse.js +0 -1
- package/dist/openapi_client/models/TaskMessageResponse.d.ts +0 -15
- package/dist/openapi_client/models/TaskMessageResponse.js +0 -1
- 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/{AssistantListResponse.js → AgentSurfaceResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantResponse.js → MessageListResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → SendMessageRequest.js} +0 -0
- /package/dist/openapi_client/models/{AvailableModelInfo.js → ToolCallContent.js} +0 -0
- /package/dist/openapi_client/models/{AvailableModelsListResponse.js → ToolReturnContent.js} +0 -0
- /package/dist/openapi_client/models/{ConversationMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{ConversationMessageResponse.js → app__modules__function__api__schemas__function_schemas__TableAccessEntry.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var FileNamespace;
|
|
6
|
+
(function (FileNamespace) {
|
|
7
|
+
FileNamespace["PERSONAL"] = "PERSONAL";
|
|
8
|
+
FileNamespace["POD"] = "POD";
|
|
9
|
+
})(FileNamespace || (FileNamespace = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FileNamespace } from './FileNamespace.js';
|
|
2
2
|
export type FileResponse = {
|
|
3
3
|
created_at: string;
|
|
4
4
|
description: (string | null);
|
|
@@ -9,6 +9,7 @@ export type FileResponse = {
|
|
|
9
9
|
metadata?: (Record<string, any> | null);
|
|
10
10
|
mime_type?: (string | null);
|
|
11
11
|
name: string;
|
|
12
|
+
namespace?: FileNamespace;
|
|
12
13
|
owner_user_id?: (string | null);
|
|
13
14
|
path: string;
|
|
14
15
|
pod_id: string;
|
|
@@ -16,5 +17,4 @@ export type FileResponse = {
|
|
|
16
17
|
size_bytes?: number;
|
|
17
18
|
status: string;
|
|
18
19
|
updated_at: string;
|
|
19
|
-
visibility?: FileVisibility;
|
|
20
20
|
};
|
|
@@ -20,7 +20,16 @@ export type FlowRunEntity = {
|
|
|
20
20
|
trigger_type?: string;
|
|
21
21
|
updated_at?: string;
|
|
22
22
|
user_id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Agent conversation id when the workflow is waiting for a pod agent execution.
|
|
25
|
+
*/
|
|
26
|
+
waiting_agent_conversation_id?: (string | null);
|
|
27
|
+
/**
|
|
28
|
+
* Function run id when the workflow is waiting for an async function.
|
|
29
|
+
*/
|
|
23
30
|
waiting_function_run_id?: (string | null);
|
|
24
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Trigger id when the workflow is waiting for an external trigger.
|
|
33
|
+
*/
|
|
25
34
|
waiting_trigger_id?: (string | null);
|
|
26
35
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
|
|
1
2
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
2
3
|
import type { FunctionStatus } from './FunctionStatus.js';
|
|
3
4
|
import type { FunctionType } from './FunctionType.js';
|
|
4
|
-
import type { TableAccessEntry } from './TableAccessEntry.js';
|
|
5
5
|
/**
|
|
6
6
|
* Function response.
|
|
7
7
|
*/
|
|
8
8
|
export type FunctionResponse = {
|
|
9
9
|
accessible_applications: Array<ApplicationAccessConfig>;
|
|
10
10
|
accessible_folders: Array<string>;
|
|
11
|
-
accessible_tables: Array<
|
|
11
|
+
accessible_tables: Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry>;
|
|
12
12
|
code?: (string | null);
|
|
13
13
|
code_path?: (string | null);
|
|
14
14
|
config?: (Record<string, any> | null);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Runtime framework used to execute an agent.
|
|
7
|
+
*/
|
|
8
|
+
export var HarnessKind;
|
|
9
|
+
(function (HarnessKind) {
|
|
10
|
+
HarnessKind["PYDANTIC_AI"] = "pydantic_ai";
|
|
11
|
+
HarnessKind["PYDANTIC_DEEP"] = "pydantic_deep";
|
|
12
|
+
})(HarnessKind || (HarnessKind = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { NotificationContent } from './NotificationContent.js';
|
|
2
|
+
import type { TextContent } from './TextContent.js';
|
|
3
|
+
import type { ThinkingContent } from './ThinkingContent.js';
|
|
4
|
+
import type { ToolCallContent } from './ToolCallContent.js';
|
|
5
|
+
import type { ToolReturnContent } from './ToolReturnContent.js';
|
|
6
|
+
export type MessageResponse = {
|
|
7
|
+
agent_run_id?: (string | null);
|
|
8
|
+
content: (NotificationContent | TextContent | ThinkingContent | ToolCallContent | ToolReturnContent);
|
|
9
|
+
conversation_id: string;
|
|
10
|
+
created_at: string;
|
|
11
|
+
id: string;
|
|
12
|
+
metadata?: (Record<string, any> | null);
|
|
13
|
+
role: string;
|
|
14
|
+
sequence: number;
|
|
15
|
+
tool_call_id?: (string | null);
|
|
16
|
+
tool_name?: (string | null);
|
|
17
|
+
};
|
|
@@ -6,10 +6,6 @@ export type ReportFeedbackResponse = {
|
|
|
6
6
|
* Delegated agent associated with the report, if available.
|
|
7
7
|
*/
|
|
8
8
|
agent_id?: (string | null);
|
|
9
|
-
/**
|
|
10
|
-
* Delegated assistant associated with the report, if available.
|
|
11
|
-
*/
|
|
12
|
-
assistant_id?: (string | null);
|
|
13
9
|
/**
|
|
14
10
|
* Identifier of the created feedback report.
|
|
15
11
|
*/
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
+
import type { AgentModelName } from './AgentModelName.js';
|
|
2
|
+
import type { AgentToolset } from './AgentToolset.js';
|
|
3
|
+
import type { app__modules__agent__domain__value_objects__TableAccessEntry } from './app__modules__agent__domain__value_objects__TableAccessEntry.js';
|
|
1
4
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
2
|
-
import type {
|
|
3
|
-
import type { ToolSet } from './ToolSet.js';
|
|
4
|
-
/**
|
|
5
|
-
* Request schema for updating an agent.
|
|
6
|
-
*/
|
|
5
|
+
import type { HarnessKind } from './HarnessKind.js';
|
|
7
6
|
export type UpdateAgentRequest = {
|
|
8
7
|
accessible_applications?: (Array<ApplicationAccessConfig> | null);
|
|
9
8
|
accessible_folders?: (Array<string> | null);
|
|
10
|
-
accessible_tables?: (Array<
|
|
9
|
+
accessible_tables?: (Array<app__modules__agent__domain__value_objects__TableAccessEntry> | null);
|
|
10
|
+
agent_names?: (Array<string> | null);
|
|
11
11
|
description?: (string | null);
|
|
12
|
+
function_names?: (Array<string> | null);
|
|
13
|
+
harness_kind?: (HarnessKind | null);
|
|
12
14
|
icon_url?: (string | null);
|
|
13
15
|
input_schema?: (Record<string, any> | null);
|
|
14
16
|
instruction?: (string | null);
|
|
17
|
+
metadata?: (Record<string, any> | null);
|
|
18
|
+
model_name?: (AgentModelName | null);
|
|
15
19
|
output_schema?: (Record<string, any> | null);
|
|
16
|
-
|
|
20
|
+
toolsets?: (Array<AgentToolset> | null);
|
|
17
21
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
* Request to update a conversation.
|
|
4
|
-
*/
|
|
1
|
+
import type { AgentModelName } from './AgentModelName.js';
|
|
5
2
|
export type UpdateConversationRequest = {
|
|
6
|
-
|
|
3
|
+
model_name?: (AgentModelName | null);
|
|
7
4
|
title?: (string | null);
|
|
8
5
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
|
|
1
2
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
2
3
|
import type { FunctionType } from './FunctionType.js';
|
|
3
|
-
import type { TableAccessEntry } from './TableAccessEntry.js';
|
|
4
4
|
/**
|
|
5
5
|
* Request to update a function.
|
|
6
6
|
*/
|
|
7
7
|
export type UpdateFunctionRequest = {
|
|
8
8
|
accessible_applications?: (Array<ApplicationAccessConfig> | null);
|
|
9
9
|
accessible_folders?: (Array<string> | null);
|
|
10
|
-
accessible_tables?: (Array<
|
|
10
|
+
accessible_tables?: (Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry> | null);
|
|
11
11
|
code?: (string | null);
|
|
12
12
|
config?: (Record<string, any> | null);
|
|
13
13
|
description?: (string | null);
|
|
@@ -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',
|