lemma-sdk 0.2.36 → 0.2.38
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 +45 -30
- package/dist/browser/lemma-client.js +224 -212
- package/dist/client.d.ts +1 -4
- package/dist/client.js +1 -6
- package/dist/index.d.ts +2 -5
- package/dist/index.js +1 -2
- package/dist/namespaces/agents.js +1 -1
- package/dist/namespaces/conversations.d.ts +68 -0
- package/dist/namespaces/conversations.js +159 -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/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/{TaskMessageResponse.d.ts → MessageResponse.d.ts} +8 -7
- 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 +87 -0
- package/dist/openapi_client/services/{ConversationsService.js → AgentConversationsService.js} +61 -72
- 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/index.d.ts +0 -8
- package/dist/react/index.js +0 -4
- package/dist/react/useAssistantController.d.ts +6 -2
- package/dist/react/useAssistantController.js +56 -15
- package/dist/react/useAssistantSession.d.ts +15 -5
- package/dist/react/useAssistantSession.js +24 -26
- 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 -5
- package/dist/run-utils.js +0 -10
- package/dist/types.d.ts +24 -10
- package/package.json +1 -1
- package/dist/namespaces/assistants.d.ts +0 -96
- package/dist/namespaces/assistants.js +0 -160
- package/dist/namespaces/tasks.d.ts +0 -29
- package/dist/namespaces/tasks.js +0 -49
- 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.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/TasksService.d.ts +0 -76
- package/dist/openapi_client/services/TasksService.js +0 -167
- package/dist/react/useAgentRun.d.ts +0 -17
- package/dist/react/useAgentRun.js +0 -56
- package/dist/react/useAgentRuns.d.ts +0 -33
- package/dist/react/useAgentRuns.js +0 -149
- package/dist/react/useAssistantRun.d.ts +0 -27
- package/dist/react/useAssistantRun.js +0 -47
- package/dist/react/useTaskSession.d.ts +0 -35
- package/dist/react/useTaskSession.js +0 -269
- package/dist/task-events.d.ts +0 -8
- package/dist/task-events.js +0 -115
- /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 = {}));
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { NotificationContent } from './NotificationContent.js';
|
|
2
2
|
import type { TextContent } from './TextContent.js';
|
|
3
3
|
import type { ThinkingContent } from './ThinkingContent.js';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export type TaskMessageResponse = {
|
|
10
|
-
content: (NotificationContent | TextContent | ThinkingContent | ToolCallRequest | ToolCallResponse);
|
|
4
|
+
import type { ToolCallContent } from './ToolCallContent.js';
|
|
5
|
+
import type { ToolReturnContent } from './ToolReturnContent.js';
|
|
6
|
+
export type MessageResponse = {
|
|
7
|
+
content: (NotificationContent | TextContent | ThinkingContent | ToolCallContent | ToolReturnContent);
|
|
8
|
+
conversation_id: string;
|
|
11
9
|
created_at: string;
|
|
12
10
|
id: string;
|
|
13
11
|
metadata?: (Record<string, any> | null);
|
|
14
12
|
role: string;
|
|
13
|
+
sequence: number;
|
|
14
|
+
tool_call_id?: (string | null);
|
|
15
|
+
tool_name?: (string | null);
|
|
15
16
|
};
|
|
@@ -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,87 @@
|
|
|
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
|
+
* Get Pod Conversation
|
|
31
|
+
* Get a single pod-scoped assistant or agent conversation by id.
|
|
32
|
+
* @param podId
|
|
33
|
+
* @param conversationId
|
|
34
|
+
* @returns ConversationResponse Successful Response
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
static agentConversationGet(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Update Pod Conversation
|
|
40
|
+
* 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.
|
|
41
|
+
* @param podId
|
|
42
|
+
* @param conversationId
|
|
43
|
+
* @param requestBody
|
|
44
|
+
* @returns ConversationResponse Successful Response
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static agentConversationUpdate(podId: string, conversationId: string, requestBody: UpdateConversationRequest): CancelablePromise<ConversationResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* List Pod Conversation Messages
|
|
50
|
+
* List persisted messages in a pod-scoped conversation in sequence order.
|
|
51
|
+
* @param podId
|
|
52
|
+
* @param conversationId
|
|
53
|
+
* @param afterSequence
|
|
54
|
+
* @param limit
|
|
55
|
+
* @returns MessageListResponse Successful Response
|
|
56
|
+
* @throws ApiError
|
|
57
|
+
*/
|
|
58
|
+
static agentConversationMessageList(podId: string, conversationId: string, afterSequence?: (number | null), limit?: number): CancelablePromise<MessageListResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Send Pod Conversation Message
|
|
61
|
+
* Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active turn completes. User messages can also be appended while work is already active; the next harness step sees the new message in persisted history.
|
|
62
|
+
* @param podId
|
|
63
|
+
* @param conversationId
|
|
64
|
+
* @param requestBody
|
|
65
|
+
* @returns any Successful Response
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
static agentConversationMessageSend(podId: string, conversationId: string, requestBody: SendMessageRequest): CancelablePromise<any>;
|
|
69
|
+
/**
|
|
70
|
+
* Stop Pod Conversation
|
|
71
|
+
* Request cancellation of the active conversation work.
|
|
72
|
+
* @param podId
|
|
73
|
+
* @param conversationId
|
|
74
|
+
* @returns ConversationResponse Successful Response
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static agentConversationStop(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Stream Pod Conversation
|
|
80
|
+
* Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active work.
|
|
81
|
+
* @param podId
|
|
82
|
+
* @param conversationId
|
|
83
|
+
* @returns any Successful Response
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static agentConversationStream(podId: string, conversationId: string): CancelablePromise<any>;
|
|
87
|
+
}
|
package/dist/openapi_client/services/{ConversationsService.js → AgentConversationsService.js}
RENAMED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
-
export class
|
|
3
|
+
export class AgentConversationsService {
|
|
4
4
|
/**
|
|
5
|
-
* List Conversations
|
|
6
|
-
*
|
|
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
7
|
* @param podId
|
|
8
|
-
* @param
|
|
9
|
-
* @param globalOnly
|
|
8
|
+
* @param agentName
|
|
10
9
|
* @param pageToken
|
|
11
10
|
* @param limit
|
|
12
11
|
* @returns ConversationListResponse Successful Response
|
|
13
12
|
* @throws ApiError
|
|
14
13
|
*/
|
|
15
|
-
static
|
|
14
|
+
static agentConversationList(podId, agentName, pageToken, limit = 20) {
|
|
16
15
|
return __request(OpenAPI, {
|
|
17
16
|
method: 'GET',
|
|
18
|
-
url: '/conversations',
|
|
19
|
-
|
|
20
|
-
'assistant_name': assistantName,
|
|
17
|
+
url: '/pods/{pod_id}/conversations',
|
|
18
|
+
path: {
|
|
21
19
|
'pod_id': podId,
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
},
|
|
21
|
+
query: {
|
|
22
|
+
'agent_name': agentName,
|
|
24
23
|
'page_token': pageToken,
|
|
25
24
|
'limit': limit,
|
|
26
25
|
},
|
|
@@ -30,15 +29,20 @@ export class ConversationsService {
|
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
|
-
* Create Conversation
|
|
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
|
|
34
35
|
* @param requestBody
|
|
35
36
|
* @returns ConversationResponse Successful Response
|
|
36
37
|
* @throws ApiError
|
|
37
38
|
*/
|
|
38
|
-
static
|
|
39
|
+
static agentConversationCreate(podId, requestBody) {
|
|
39
40
|
return __request(OpenAPI, {
|
|
40
41
|
method: 'POST',
|
|
41
|
-
url: '/conversations',
|
|
42
|
+
url: '/pods/{pod_id}/conversations',
|
|
43
|
+
path: {
|
|
44
|
+
'pod_id': podId,
|
|
45
|
+
},
|
|
42
46
|
body: requestBody,
|
|
43
47
|
mediaType: 'application/json',
|
|
44
48
|
errors: {
|
|
@@ -47,21 +51,20 @@ export class ConversationsService {
|
|
|
47
51
|
});
|
|
48
52
|
}
|
|
49
53
|
/**
|
|
50
|
-
* Get Conversation
|
|
51
|
-
*
|
|
54
|
+
* Get Pod Conversation
|
|
55
|
+
* Get a single pod-scoped assistant or agent conversation by id.
|
|
52
56
|
* @param podId
|
|
57
|
+
* @param conversationId
|
|
53
58
|
* @returns ConversationResponse Successful Response
|
|
54
59
|
* @throws ApiError
|
|
55
60
|
*/
|
|
56
|
-
static
|
|
61
|
+
static agentConversationGet(podId, conversationId) {
|
|
57
62
|
return __request(OpenAPI, {
|
|
58
63
|
method: 'GET',
|
|
59
|
-
url: '/conversations/{conversation_id}',
|
|
64
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}',
|
|
60
65
|
path: {
|
|
61
|
-
'conversation_id': conversationId,
|
|
62
|
-
},
|
|
63
|
-
query: {
|
|
64
66
|
'pod_id': podId,
|
|
67
|
+
'conversation_id': conversationId,
|
|
65
68
|
},
|
|
66
69
|
errors: {
|
|
67
70
|
422: `Validation Error`,
|
|
@@ -69,22 +72,21 @@ export class ConversationsService {
|
|
|
69
72
|
});
|
|
70
73
|
}
|
|
71
74
|
/**
|
|
72
|
-
* Update Conversation
|
|
75
|
+
* Update Pod Conversation
|
|
76
|
+
* 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.
|
|
77
|
+
* @param podId
|
|
73
78
|
* @param conversationId
|
|
74
79
|
* @param requestBody
|
|
75
|
-
* @param podId
|
|
76
80
|
* @returns ConversationResponse Successful Response
|
|
77
81
|
* @throws ApiError
|
|
78
82
|
*/
|
|
79
|
-
static
|
|
83
|
+
static agentConversationUpdate(podId, conversationId, requestBody) {
|
|
80
84
|
return __request(OpenAPI, {
|
|
81
85
|
method: 'PATCH',
|
|
82
|
-
url: '/conversations/{conversation_id}',
|
|
86
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}',
|
|
83
87
|
path: {
|
|
84
|
-
'conversation_id': conversationId,
|
|
85
|
-
},
|
|
86
|
-
query: {
|
|
87
88
|
'pod_id': podId,
|
|
89
|
+
'conversation_id': conversationId,
|
|
88
90
|
},
|
|
89
91
|
body: requestBody,
|
|
90
92
|
mediaType: 'application/json',
|
|
@@ -94,23 +96,25 @@ export class ConversationsService {
|
|
|
94
96
|
});
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
97
|
-
* List Messages
|
|
98
|
-
* List messages in a conversation
|
|
99
|
+
* List Pod Conversation Messages
|
|
100
|
+
* List persisted messages in a pod-scoped conversation in sequence order.
|
|
101
|
+
* @param podId
|
|
99
102
|
* @param conversationId
|
|
100
|
-
* @param
|
|
103
|
+
* @param afterSequence
|
|
101
104
|
* @param limit
|
|
102
|
-
* @returns
|
|
105
|
+
* @returns MessageListResponse Successful Response
|
|
103
106
|
* @throws ApiError
|
|
104
107
|
*/
|
|
105
|
-
static
|
|
108
|
+
static agentConversationMessageList(podId, conversationId, afterSequence, limit = 100) {
|
|
106
109
|
return __request(OpenAPI, {
|
|
107
110
|
method: 'GET',
|
|
108
|
-
url: '/conversations/{conversation_id}/messages',
|
|
111
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}/messages',
|
|
109
112
|
path: {
|
|
113
|
+
'pod_id': podId,
|
|
110
114
|
'conversation_id': conversationId,
|
|
111
115
|
},
|
|
112
116
|
query: {
|
|
113
|
-
'
|
|
117
|
+
'after_sequence': afterSequence,
|
|
114
118
|
'limit': limit,
|
|
115
119
|
},
|
|
116
120
|
errors: {
|
|
@@ -119,22 +123,21 @@ export class ConversationsService {
|
|
|
119
123
|
});
|
|
120
124
|
}
|
|
121
125
|
/**
|
|
122
|
-
* Send Message
|
|
126
|
+
* Send Pod Conversation Message
|
|
127
|
+
* Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active turn completes. User messages can also be appended while work is already active; the next harness step sees the new message in persisted history.
|
|
128
|
+
* @param podId
|
|
123
129
|
* @param conversationId
|
|
124
130
|
* @param requestBody
|
|
125
|
-
* @
|
|
126
|
-
* @returns any Server-Sent Events
|
|
131
|
+
* @returns any Successful Response
|
|
127
132
|
* @throws ApiError
|
|
128
133
|
*/
|
|
129
|
-
static
|
|
134
|
+
static agentConversationMessageSend(podId, conversationId, requestBody) {
|
|
130
135
|
return __request(OpenAPI, {
|
|
131
136
|
method: 'POST',
|
|
132
|
-
url: '/conversations/{conversation_id}/messages',
|
|
137
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}/messages',
|
|
133
138
|
path: {
|
|
134
|
-
'conversation_id': conversationId,
|
|
135
|
-
},
|
|
136
|
-
query: {
|
|
137
139
|
'pod_id': podId,
|
|
140
|
+
'conversation_id': conversationId,
|
|
138
141
|
},
|
|
139
142
|
body: requestBody,
|
|
140
143
|
mediaType: 'application/json',
|
|
@@ -144,21 +147,20 @@ export class ConversationsService {
|
|
|
144
147
|
});
|
|
145
148
|
}
|
|
146
149
|
/**
|
|
147
|
-
* Stop Conversation
|
|
148
|
-
*
|
|
150
|
+
* Stop Pod Conversation
|
|
151
|
+
* Request cancellation of the active conversation work.
|
|
149
152
|
* @param podId
|
|
150
|
-
* @
|
|
153
|
+
* @param conversationId
|
|
154
|
+
* @returns ConversationResponse Successful Response
|
|
151
155
|
* @throws ApiError
|
|
152
156
|
*/
|
|
153
|
-
static
|
|
157
|
+
static agentConversationStop(podId, conversationId) {
|
|
154
158
|
return __request(OpenAPI, {
|
|
155
|
-
method: '
|
|
156
|
-
url: '/conversations/{conversation_id}/stop',
|
|
159
|
+
method: 'POST',
|
|
160
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}/stop',
|
|
157
161
|
path: {
|
|
158
|
-
'conversation_id': conversationId,
|
|
159
|
-
},
|
|
160
|
-
query: {
|
|
161
162
|
'pod_id': podId,
|
|
163
|
+
'conversation_id': conversationId,
|
|
162
164
|
},
|
|
163
165
|
errors: {
|
|
164
166
|
422: `Validation Error`,
|
|
@@ -166,37 +168,24 @@ export class ConversationsService {
|
|
|
166
168
|
});
|
|
167
169
|
}
|
|
168
170
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
+
* Stream Pod Conversation
|
|
172
|
+
* Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active work.
|
|
171
173
|
* @param podId
|
|
172
|
-
* @
|
|
174
|
+
* @param conversationId
|
|
175
|
+
* @returns any Successful Response
|
|
173
176
|
* @throws ApiError
|
|
174
177
|
*/
|
|
175
|
-
static
|
|
178
|
+
static agentConversationStream(podId, conversationId) {
|
|
176
179
|
return __request(OpenAPI, {
|
|
177
180
|
method: 'GET',
|
|
178
|
-
url: '/conversations/{conversation_id}/stream',
|
|
181
|
+
url: '/pods/{pod_id}/conversations/{conversation_id}/stream',
|
|
179
182
|
path: {
|
|
180
|
-
'conversation_id': conversationId,
|
|
181
|
-
},
|
|
182
|
-
query: {
|
|
183
183
|
'pod_id': podId,
|
|
184
|
+
'conversation_id': conversationId,
|
|
184
185
|
},
|
|
185
186
|
errors: {
|
|
186
187
|
422: `Validation Error`,
|
|
187
188
|
},
|
|
188
189
|
});
|
|
189
190
|
}
|
|
190
|
-
/**
|
|
191
|
-
* List Available Models
|
|
192
|
-
* Get list of all available models in the system.
|
|
193
|
-
* @returns AvailableModelsListResponse Successful Response
|
|
194
|
-
* @throws ApiError
|
|
195
|
-
*/
|
|
196
|
-
static conversationModelsList() {
|
|
197
|
-
return __request(OpenAPI, {
|
|
198
|
-
method: 'GET',
|
|
199
|
-
url: '/models',
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
191
|
}
|
|
@@ -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',
|