letta-client 1.0.0a9__py3-none-any.whl → 1.0.0a11__py3-none-any.whl
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.
Potentially problematic release.
This version of letta-client might be problematic. Click here for more details.
- letta_client/_client.py +5 -1
- letta_client/_streaming.py +40 -2
- letta_client/_version.py +1 -1
- letta_client/resources/agents/agents.py +396 -396
- letta_client/resources/agents/blocks.py +198 -190
- letta_client/resources/agents/files.py +10 -13
- letta_client/resources/agents/folders.py +10 -13
- letta_client/resources/agents/messages.py +380 -370
- letta_client/resources/agents/tools.py +10 -13
- letta_client/resources/archives.py +111 -113
- letta_client/resources/batches/batches.py +10 -12
- letta_client/resources/batches/messages.py +11 -14
- letta_client/resources/blocks/blocks.py +238 -222
- letta_client/resources/folders/agents.py +10 -13
- letta_client/resources/folders/files.py +9 -12
- letta_client/resources/folders/folders.py +143 -145
- letta_client/resources/groups/groups.py +141 -141
- letta_client/resources/groups/messages.py +198 -198
- letta_client/resources/identities/blocks.py +7 -7
- letta_client/resources/identities/identities.py +151 -153
- letta_client/resources/runs/runs.py +11 -13
- letta_client/resources/tags.py +10 -13
- letta_client/resources/tools.py +802 -204
- letta_client/types/__init__.py +14 -7
- letta_client/types/{agent_update_params.py → agent_modify_params.py} +2 -2
- letta_client/types/agent_state.py +6 -3
- letta_client/types/agents/__init__.py +5 -3
- letta_client/types/agents/block.py +6 -3
- letta_client/types/agents/{block_update_params.py → block_modify_params.py} +8 -5
- letta_client/types/agents/file_list_response.py +14 -3
- letta_client/types/agents/folder_list_response.py +7 -3
- letta_client/types/agents/letta_streaming_response.py +70 -0
- letta_client/types/agents/{message_update_params.py → message_modify_params.py} +2 -2
- letta_client/types/agents/{message_update_response.py → message_modify_response.py} +2 -2
- letta_client/types/agents/tool_list_response.py +10 -0
- letta_client/types/archive_list_response.py +10 -0
- letta_client/types/{archive_update_params.py → archive_modify_params.py} +2 -2
- letta_client/types/batch_list_response.py +10 -0
- letta_client/types/batches/__init__.py +1 -0
- letta_client/types/batches/message_list_response.py +12 -0
- letta_client/types/block_create_params.py +6 -3
- letta_client/types/{block_update_params.py → block_modify_params.py} +8 -5
- letta_client/types/block_response.py +63 -0
- letta_client/types/create_block_param.py +6 -3
- letta_client/types/folder_list_response.py +10 -0
- letta_client/types/{folder_update_params.py → folder_modify_params.py} +2 -2
- letta_client/types/folders/agent_list_response.py +2 -1
- letta_client/types/folders/file_list_response.py +7 -4
- letta_client/types/{group_update_params.py → group_modify_params.py} +2 -2
- letta_client/types/groups/__init__.py +2 -2
- letta_client/types/groups/{message_update_params.py → message_modify_params.py} +2 -2
- letta_client/types/groups/{message_update_response.py → message_modify_response.py} +2 -2
- letta_client/types/identity_list_response.py +10 -0
- letta_client/types/{identity_update_params.py → identity_modify_params.py} +2 -2
- letta_client/types/run_list_response.py +10 -0
- letta_client/types/tag_list_response.py +2 -1
- letta_client/types/tool.py +106 -2
- letta_client/types/tool_list_response.py +10 -0
- letta_client/types/{tool_update_params.py → tool_modify_params.py} +2 -2
- {letta_client-1.0.0a9.dist-info → letta_client-1.0.0a11.dist-info}/METADATA +1 -1
- {letta_client-1.0.0a9.dist-info → letta_client-1.0.0a11.dist-info}/RECORD +63 -53
- {letta_client-1.0.0a9.dist-info → letta_client-1.0.0a11.dist-info}/WHEEL +0 -0
- {letta_client-1.0.0a9.dist-info → letta_client-1.0.0a11.dist-info}/licenses/LICENSE +0 -0
letta_client/types/__init__.py
CHANGED
|
@@ -16,6 +16,7 @@ from .agent_state import AgentState as AgentState
|
|
|
16
16
|
from .manager_type import ManagerType as ManagerType
|
|
17
17
|
from .identity_type import IdentityType as IdentityType
|
|
18
18
|
from .provider_type import ProviderType as ProviderType
|
|
19
|
+
from .block_response import BlockResponse as BlockResponse
|
|
19
20
|
from .init_tool_rule import InitToolRule as InitToolRule
|
|
20
21
|
from .provider_trace import ProviderTrace as ProviderTrace
|
|
21
22
|
from .child_tool_rule import ChildToolRule as ChildToolRule
|
|
@@ -37,6 +38,7 @@ from .group_list_params import GroupListParams as GroupListParams
|
|
|
37
38
|
from .identity_property import IdentityProperty as IdentityProperty
|
|
38
39
|
from .model_list_params import ModelListParams as ModelListParams
|
|
39
40
|
from .provider_category import ProviderCategory as ProviderCategory
|
|
41
|
+
from .run_list_response import RunListResponse as RunListResponse
|
|
40
42
|
from .tag_list_response import TagListResponse as TagListResponse
|
|
41
43
|
from .tool_count_params import ToolCountParams as ToolCountParams
|
|
42
44
|
from .continue_tool_rule import ContinueToolRule as ContinueToolRule
|
|
@@ -44,24 +46,27 @@ from .create_block_param import CreateBlockParam as CreateBlockParam
|
|
|
44
46
|
from .folder_list_params import FolderListParams as FolderListParams
|
|
45
47
|
from .terminal_tool_rule import TerminalToolRule as TerminalToolRule
|
|
46
48
|
from .tool_create_params import ToolCreateParams as ToolCreateParams
|
|
47
|
-
from .
|
|
49
|
+
from .tool_list_response import ToolListResponse as ToolListResponse
|
|
50
|
+
from .tool_modify_params import ToolModifyParams as ToolModifyParams
|
|
48
51
|
from .tool_upsert_params import ToolUpsertParams as ToolUpsertParams
|
|
49
52
|
from .vector_db_provider import VectorDBProvider as VectorDBProvider
|
|
50
53
|
from .agent_create_params import AgentCreateParams as AgentCreateParams
|
|
51
|
-
from .
|
|
54
|
+
from .agent_modify_params import AgentModifyParams as AgentModifyParams
|
|
52
55
|
from .archive_list_params import ArchiveListParams as ArchiveListParams
|
|
53
56
|
from .batch_create_params import BatchCreateParams as BatchCreateParams
|
|
57
|
+
from .batch_list_response import BatchListResponse as BatchListResponse
|
|
54
58
|
from .block_create_params import BlockCreateParams as BlockCreateParams
|
|
55
|
-
from .
|
|
59
|
+
from .block_modify_params import BlockModifyParams as BlockModifyParams
|
|
56
60
|
from .group_create_params import GroupCreateParams as GroupCreateParams
|
|
57
|
-
from .
|
|
61
|
+
from .group_modify_params import GroupModifyParams as GroupModifyParams
|
|
58
62
|
from .model_list_response import ModelListResponse as ModelListResponse
|
|
59
63
|
from .tool_count_response import ToolCountResponse as ToolCountResponse
|
|
60
64
|
from .tool_return_message import ToolReturnMessage as ToolReturnMessage
|
|
61
65
|
from .agent_count_response import AgentCountResponse as AgentCountResponse
|
|
62
66
|
from .block_count_response import BlockCountResponse as BlockCountResponse
|
|
63
67
|
from .folder_create_params import FolderCreateParams as FolderCreateParams
|
|
64
|
-
from .
|
|
68
|
+
from .folder_list_response import FolderListResponse as FolderListResponse
|
|
69
|
+
from .folder_modify_params import FolderModifyParams as FolderModifyParams
|
|
65
70
|
from .group_count_response import GroupCountResponse as GroupCountResponse
|
|
66
71
|
from .identity_list_params import IdentityListParams as IdentityListParams
|
|
67
72
|
from .init_tool_rule_param import InitToolRuleParam as InitToolRuleParam
|
|
@@ -69,7 +74,8 @@ from .message_create_param import MessageCreateParam as MessageCreateParam
|
|
|
69
74
|
from .text_response_format import TextResponseFormat as TextResponseFormat
|
|
70
75
|
from .agent_retrieve_params import AgentRetrieveParams as AgentRetrieveParams
|
|
71
76
|
from .archive_create_params import ArchiveCreateParams as ArchiveCreateParams
|
|
72
|
-
from .
|
|
77
|
+
from .archive_list_response import ArchiveListResponse as ArchiveListResponse
|
|
78
|
+
from .archive_modify_params import ArchiveModifyParams as ArchiveModifyParams
|
|
73
79
|
from .child_tool_rule_param import ChildToolRuleParam as ChildToolRuleParam
|
|
74
80
|
from .conditional_tool_rule import ConditionalToolRule as ConditionalToolRule
|
|
75
81
|
from .dynamic_manager_param import DynamicManagerParam as DynamicManagerParam
|
|
@@ -78,7 +84,8 @@ from .npm_requirement_param import NpmRequirementParam as NpmRequirementParam
|
|
|
78
84
|
from .pip_requirement_param import PipRequirementParam as PipRequirementParam
|
|
79
85
|
from .embedding_config_param import EmbeddingConfigParam as EmbeddingConfigParam
|
|
80
86
|
from .identity_create_params import IdentityCreateParams as IdentityCreateParams
|
|
81
|
-
from .
|
|
87
|
+
from .identity_list_response import IdentityListResponse as IdentityListResponse
|
|
88
|
+
from .identity_modify_params import IdentityModifyParams as IdentityModifyParams
|
|
82
89
|
from .identity_upsert_params import IdentityUpsertParams as IdentityUpsertParams
|
|
83
90
|
from .parent_tool_rule_param import ParentToolRuleParam as ParentToolRuleParam
|
|
84
91
|
from .identity_count_response import IdentityCountResponse as IdentityCountResponse
|
|
@@ -23,10 +23,10 @@ from .requires_approval_tool_rule_param import RequiresApprovalToolRuleParam
|
|
|
23
23
|
from .max_count_per_step_tool_rule_param import MaxCountPerStepToolRuleParam
|
|
24
24
|
from .required_before_exit_tool_rule_param import RequiredBeforeExitToolRuleParam
|
|
25
25
|
|
|
26
|
-
__all__ = ["
|
|
26
|
+
__all__ = ["AgentModifyParams", "ResponseFormat", "ToolRule"]
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class AgentModifyParams(TypedDict, total=False):
|
|
30
30
|
base_template_id: Optional[str]
|
|
31
31
|
"""The base template id of the agent."""
|
|
32
32
|
|
|
@@ -86,9 +86,6 @@ class MemoryFileBlock(BaseModel):
|
|
|
86
86
|
metadata: Optional[Dict[str, object]] = None
|
|
87
87
|
"""Metadata of the block."""
|
|
88
88
|
|
|
89
|
-
name: Optional[str] = None
|
|
90
|
-
"""The id of the template."""
|
|
91
|
-
|
|
92
89
|
preserve_on_migration: Optional[bool] = None
|
|
93
90
|
"""Preserve the block on template migration."""
|
|
94
91
|
|
|
@@ -98,6 +95,12 @@ class MemoryFileBlock(BaseModel):
|
|
|
98
95
|
read_only: Optional[bool] = None
|
|
99
96
|
"""Whether the agent has read-only access to the block."""
|
|
100
97
|
|
|
98
|
+
template_id: Optional[str] = None
|
|
99
|
+
"""The id of the template."""
|
|
100
|
+
|
|
101
|
+
template_name: Optional[str] = None
|
|
102
|
+
"""Name of the block if it is a template."""
|
|
103
|
+
|
|
101
104
|
|
|
102
105
|
class Memory(BaseModel):
|
|
103
106
|
blocks: List[Block]
|
|
@@ -31,7 +31,8 @@ from .file_list_response import FileListResponse as FileListResponse
|
|
|
31
31
|
from .file_open_response import FileOpenResponse as FileOpenResponse
|
|
32
32
|
from .folder_list_params import FolderListParams as FolderListParams
|
|
33
33
|
from .text_content_param import TextContentParam as TextContentParam
|
|
34
|
-
from .
|
|
34
|
+
from .tool_list_response import ToolListResponse as ToolListResponse
|
|
35
|
+
from .block_modify_params import BlockModifyParams as BlockModifyParams
|
|
35
36
|
from .image_content_param import ImageContentParam as ImageContentParam
|
|
36
37
|
from .letta_message_union import LettaMessageUnion as LettaMessageUnion
|
|
37
38
|
from .message_list_params import MessageListParams as MessageListParams
|
|
@@ -41,15 +42,16 @@ from .folder_list_response import FolderListResponse as FolderListResponse
|
|
|
41
42
|
from .message_reset_params import MessageResetParams as MessageResetParams
|
|
42
43
|
from .approval_create_param import ApprovalCreateParam as ApprovalCreateParam
|
|
43
44
|
from .message_cancel_params import MessageCancelParams as MessageCancelParams
|
|
45
|
+
from .message_modify_params import MessageModifyParams as MessageModifyParams
|
|
44
46
|
from .message_stream_params import MessageStreamParams as MessageStreamParams
|
|
45
|
-
from .message_update_params import MessageUpdateParams as MessageUpdateParams
|
|
46
47
|
from .file_close_all_response import FileCloseAllResponse as FileCloseAllResponse
|
|
47
48
|
from .message_cancel_response import MessageCancelResponse as MessageCancelResponse
|
|
48
|
-
from .
|
|
49
|
+
from .message_modify_response import MessageModifyResponse as MessageModifyResponse
|
|
49
50
|
from .reasoning_content_param import ReasoningContentParam as ReasoningContentParam
|
|
50
51
|
from .tool_call_content_param import ToolCallContentParam as ToolCallContentParam
|
|
51
52
|
from .approval_request_message import ApprovalRequestMessage as ApprovalRequestMessage
|
|
52
53
|
from .hidden_reasoning_message import HiddenReasoningMessage as HiddenReasoningMessage
|
|
54
|
+
from .letta_streaming_response import LettaStreamingResponse as LettaStreamingResponse
|
|
53
55
|
from .approval_response_message import ApprovalResponseMessage as ApprovalResponseMessage
|
|
54
56
|
from .message_send_async_params import MessageSendAsyncParams as MessageSendAsyncParams
|
|
55
57
|
from .omitted_reasoning_content import OmittedReasoningContent as OmittedReasoningContent
|
|
@@ -47,9 +47,6 @@ class Block(BaseModel):
|
|
|
47
47
|
metadata: Optional[Dict[str, object]] = None
|
|
48
48
|
"""Metadata of the block."""
|
|
49
49
|
|
|
50
|
-
name: Optional[str] = None
|
|
51
|
-
"""The id of the template."""
|
|
52
|
-
|
|
53
50
|
preserve_on_migration: Optional[bool] = None
|
|
54
51
|
"""Preserve the block on template migration."""
|
|
55
52
|
|
|
@@ -58,3 +55,9 @@ class Block(BaseModel):
|
|
|
58
55
|
|
|
59
56
|
read_only: Optional[bool] = None
|
|
60
57
|
"""Whether the agent has read-only access to the block."""
|
|
58
|
+
|
|
59
|
+
template_id: Optional[str] = None
|
|
60
|
+
"""The id of the template."""
|
|
61
|
+
|
|
62
|
+
template_name: Optional[str] = None
|
|
63
|
+
"""Name of the block if it is a template."""
|
|
@@ -5,10 +5,10 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Dict, Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["BlockModifyParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class BlockModifyParams(TypedDict, total=False):
|
|
12
12
|
agent_id: Required[str]
|
|
13
13
|
"""The ID of the agent in the format 'agent-<uuid4>'"""
|
|
14
14
|
|
|
@@ -39,9 +39,6 @@ class BlockUpdateParams(TypedDict, total=False):
|
|
|
39
39
|
metadata: Optional[Dict[str, object]]
|
|
40
40
|
"""Metadata of the block."""
|
|
41
41
|
|
|
42
|
-
name: Optional[str]
|
|
43
|
-
"""The id of the template."""
|
|
44
|
-
|
|
45
42
|
preserve_on_migration: Optional[bool]
|
|
46
43
|
"""Preserve the block on template migration."""
|
|
47
44
|
|
|
@@ -51,5 +48,11 @@ class BlockUpdateParams(TypedDict, total=False):
|
|
|
51
48
|
read_only: bool
|
|
52
49
|
"""Whether the agent has read-only access to the block."""
|
|
53
50
|
|
|
51
|
+
template_id: Optional[str]
|
|
52
|
+
"""The id of the template."""
|
|
53
|
+
|
|
54
|
+
template_name: Optional[str]
|
|
55
|
+
"""Name of the block if it is a template."""
|
|
56
|
+
|
|
54
57
|
value: Optional[str]
|
|
55
58
|
"""Value of the block."""
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import Optional
|
|
3
|
+
from typing import List, Optional
|
|
4
4
|
from datetime import datetime
|
|
5
5
|
|
|
6
6
|
from ..._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["FileListResponse"]
|
|
8
|
+
__all__ = ["FileListResponse", "File"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class File(BaseModel):
|
|
12
12
|
id: str
|
|
13
13
|
"""Unique identifier of the file-agent relationship"""
|
|
14
14
|
|
|
@@ -38,3 +38,14 @@ class FileListResponse(BaseModel):
|
|
|
38
38
|
|
|
39
39
|
visible_content: Optional[str] = None
|
|
40
40
|
"""Portion of the file visible to the agent if open"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class FileListResponse(BaseModel):
|
|
44
|
+
files: List[File]
|
|
45
|
+
"""List of file attachments for the agent"""
|
|
46
|
+
|
|
47
|
+
has_more: bool
|
|
48
|
+
"""Whether more results exist after this page"""
|
|
49
|
+
|
|
50
|
+
next_cursor: Optional[str] = None
|
|
51
|
+
"""Cursor for fetching the next page (file-agent relationship ID)"""
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import Dict, Optional
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
4
|
from datetime import datetime
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
5
6
|
|
|
6
7
|
from ..._models import BaseModel
|
|
7
8
|
from ..embedding_config import EmbeddingConfig
|
|
8
9
|
from ..vector_db_provider import VectorDBProvider
|
|
9
10
|
|
|
10
|
-
__all__ = ["FolderListResponse"]
|
|
11
|
+
__all__ = ["FolderListResponse", "FolderListResponseItem"]
|
|
11
12
|
|
|
12
13
|
|
|
13
|
-
class
|
|
14
|
+
class FolderListResponseItem(BaseModel):
|
|
14
15
|
embedding_config: EmbeddingConfig
|
|
15
16
|
"""The embedding configuration used by the source."""
|
|
16
17
|
|
|
@@ -43,3 +44,6 @@ class FolderListResponse(BaseModel):
|
|
|
43
44
|
|
|
44
45
|
vector_db_provider: Optional[VectorDBProvider] = None
|
|
45
46
|
"""The vector database provider used for this source's passages"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
FolderListResponse: TypeAlias = List[FolderListResponseItem]
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Union, Optional
|
|
4
|
+
from typing_extensions import Literal, Annotated, TypeAlias
|
|
5
|
+
|
|
6
|
+
from ..._utils import PropertyInfo
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
from .user_message import UserMessage
|
|
9
|
+
from .system_message import SystemMessage
|
|
10
|
+
from ..stop_reason_type import StopReasonType
|
|
11
|
+
from .assistant_message import AssistantMessage
|
|
12
|
+
from .reasoning_message import ReasoningMessage
|
|
13
|
+
from .tool_call_message import ToolCallMessage
|
|
14
|
+
from ..tool_return_message import ToolReturnMessage
|
|
15
|
+
from .approval_request_message import ApprovalRequestMessage
|
|
16
|
+
from .hidden_reasoning_message import HiddenReasoningMessage
|
|
17
|
+
from .approval_response_message import ApprovalResponseMessage
|
|
18
|
+
|
|
19
|
+
__all__ = ["LettaStreamingResponse", "LettaPing", "LettaStopReason", "LettaUsageStatistics"]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class LettaPing(BaseModel):
|
|
23
|
+
message_type: Literal["ping"]
|
|
24
|
+
"""The type of the message."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class LettaStopReason(BaseModel):
|
|
28
|
+
stop_reason: StopReasonType
|
|
29
|
+
"""The reason why execution stopped."""
|
|
30
|
+
|
|
31
|
+
message_type: Optional[Literal["stop_reason"]] = None
|
|
32
|
+
"""The type of the message."""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class LettaUsageStatistics(BaseModel):
|
|
36
|
+
completion_tokens: Optional[int] = None
|
|
37
|
+
"""The number of tokens generated by the agent."""
|
|
38
|
+
|
|
39
|
+
message_type: Optional[Literal["usage_statistics"]] = None
|
|
40
|
+
|
|
41
|
+
prompt_tokens: Optional[int] = None
|
|
42
|
+
"""The number of tokens in the prompt."""
|
|
43
|
+
|
|
44
|
+
run_ids: Optional[List[str]] = None
|
|
45
|
+
"""The background task run IDs associated with the agent interaction"""
|
|
46
|
+
|
|
47
|
+
step_count: Optional[int] = None
|
|
48
|
+
"""The number of steps taken by the agent."""
|
|
49
|
+
|
|
50
|
+
total_tokens: Optional[int] = None
|
|
51
|
+
"""The total number of tokens processed by the agent."""
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
LettaStreamingResponse: TypeAlias = Annotated[
|
|
55
|
+
Union[
|
|
56
|
+
SystemMessage,
|
|
57
|
+
UserMessage,
|
|
58
|
+
ReasoningMessage,
|
|
59
|
+
HiddenReasoningMessage,
|
|
60
|
+
ToolCallMessage,
|
|
61
|
+
ToolReturnMessage,
|
|
62
|
+
AssistantMessage,
|
|
63
|
+
ApprovalRequestMessage,
|
|
64
|
+
ApprovalResponseMessage,
|
|
65
|
+
LettaPing,
|
|
66
|
+
LettaStopReason,
|
|
67
|
+
LettaUsageStatistics,
|
|
68
|
+
],
|
|
69
|
+
PropertyInfo(discriminator="message_type"),
|
|
70
|
+
]
|
|
@@ -9,7 +9,7 @@ from .letta_user_message_content_union_param import LettaUserMessageContentUnion
|
|
|
9
9
|
from .letta_assistant_message_content_union_param import LettaAssistantMessageContentUnionParam
|
|
10
10
|
|
|
11
11
|
__all__ = [
|
|
12
|
-
"
|
|
12
|
+
"MessageModifyParams",
|
|
13
13
|
"UpdateSystemMessage",
|
|
14
14
|
"UpdateUserMessage",
|
|
15
15
|
"UpdateReasoningMessage",
|
|
@@ -65,6 +65,6 @@ class UpdateAssistantMessage(TypedDict, total=False):
|
|
|
65
65
|
message_type: Literal["assistant_message"]
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
MessageModifyParams: TypeAlias = Union[
|
|
69
69
|
UpdateSystemMessage, UpdateUserMessage, UpdateReasoningMessage, UpdateAssistantMessage
|
|
70
70
|
]
|
|
@@ -14,9 +14,9 @@ from .approval_request_message import ApprovalRequestMessage
|
|
|
14
14
|
from .hidden_reasoning_message import HiddenReasoningMessage
|
|
15
15
|
from .approval_response_message import ApprovalResponseMessage
|
|
16
16
|
|
|
17
|
-
__all__ = ["
|
|
17
|
+
__all__ = ["MessageModifyResponse"]
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
MessageModifyResponse: TypeAlias = Annotated[
|
|
20
20
|
Union[
|
|
21
21
|
SystemMessage,
|
|
22
22
|
UserMessage,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from ..tool import Tool
|
|
7
|
+
|
|
8
|
+
__all__ = ["ToolListResponse"]
|
|
9
|
+
|
|
10
|
+
ToolListResponse: TypeAlias = List[Tool]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .archive import Archive
|
|
7
|
+
|
|
8
|
+
__all__ = ["ArchiveListResponse"]
|
|
9
|
+
|
|
10
|
+
ArchiveListResponse: TypeAlias = List[Archive]
|
|
@@ -5,10 +5,10 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Optional
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["ArchiveModifyParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class ArchiveModifyParams(TypedDict, total=False):
|
|
12
12
|
description: Optional[str]
|
|
13
13
|
|
|
14
14
|
name: Optional[str]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .batch_job import BatchJob
|
|
7
|
+
|
|
8
|
+
__all__ = ["BatchListResponse"]
|
|
9
|
+
|
|
10
|
+
BatchListResponse: TypeAlias = List[BatchJob]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
from ..agents.message import Message
|
|
7
|
+
|
|
8
|
+
__all__ = ["MessageListResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MessageListResponse(BaseModel):
|
|
12
|
+
messages: List[Message]
|
|
@@ -38,9 +38,6 @@ class BlockCreateParams(TypedDict, total=False):
|
|
|
38
38
|
metadata: Optional[Dict[str, object]]
|
|
39
39
|
"""Metadata of the block."""
|
|
40
40
|
|
|
41
|
-
name: Optional[str]
|
|
42
|
-
"""The id of the template."""
|
|
43
|
-
|
|
44
41
|
preserve_on_migration: Optional[bool]
|
|
45
42
|
"""Preserve the block on template migration."""
|
|
46
43
|
|
|
@@ -49,3 +46,9 @@ class BlockCreateParams(TypedDict, total=False):
|
|
|
49
46
|
|
|
50
47
|
read_only: bool
|
|
51
48
|
"""Whether the agent has read-only access to the block."""
|
|
49
|
+
|
|
50
|
+
template_id: Optional[str]
|
|
51
|
+
"""The id of the template."""
|
|
52
|
+
|
|
53
|
+
template_name: Optional[str]
|
|
54
|
+
"""Name of the block if it is a template."""
|
|
@@ -5,10 +5,10 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Dict, Optional
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["BlockModifyParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class BlockModifyParams(TypedDict, total=False):
|
|
12
12
|
base_template_id: Optional[str]
|
|
13
13
|
"""The base template id of the block."""
|
|
14
14
|
|
|
@@ -36,9 +36,6 @@ class BlockUpdateParams(TypedDict, total=False):
|
|
|
36
36
|
metadata: Optional[Dict[str, object]]
|
|
37
37
|
"""Metadata of the block."""
|
|
38
38
|
|
|
39
|
-
name: Optional[str]
|
|
40
|
-
"""The id of the template."""
|
|
41
|
-
|
|
42
39
|
preserve_on_migration: Optional[bool]
|
|
43
40
|
"""Preserve the block on template migration."""
|
|
44
41
|
|
|
@@ -48,5 +45,11 @@ class BlockUpdateParams(TypedDict, total=False):
|
|
|
48
45
|
read_only: bool
|
|
49
46
|
"""Whether the agent has read-only access to the block."""
|
|
50
47
|
|
|
48
|
+
template_id: Optional[str]
|
|
49
|
+
"""The id of the template."""
|
|
50
|
+
|
|
51
|
+
template_name: Optional[str]
|
|
52
|
+
"""Name of the block if it is a template."""
|
|
53
|
+
|
|
51
54
|
value: Optional[str]
|
|
52
55
|
"""Value of the block."""
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["BlockResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class BlockResponse(BaseModel):
|
|
11
|
+
id: str
|
|
12
|
+
"""The id of the block."""
|
|
13
|
+
|
|
14
|
+
value: str
|
|
15
|
+
"""Value of the block."""
|
|
16
|
+
|
|
17
|
+
base_template_id: Optional[str] = None
|
|
18
|
+
"""(Deprecated) The base template id of the block."""
|
|
19
|
+
|
|
20
|
+
created_by_id: Optional[str] = None
|
|
21
|
+
"""The id of the user that made this Block."""
|
|
22
|
+
|
|
23
|
+
deployment_id: Optional[str] = None
|
|
24
|
+
"""(Deprecated) The id of the deployment."""
|
|
25
|
+
|
|
26
|
+
description: Optional[str] = None
|
|
27
|
+
"""Description of the block."""
|
|
28
|
+
|
|
29
|
+
entity_id: Optional[str] = None
|
|
30
|
+
"""(Deprecated) The id of the entity within the template."""
|
|
31
|
+
|
|
32
|
+
hidden: Optional[bool] = None
|
|
33
|
+
"""(Deprecated) If set to True, the block will be hidden."""
|
|
34
|
+
|
|
35
|
+
is_template: Optional[bool] = None
|
|
36
|
+
"""Whether the block is a template (e.g. saved human/persona options)."""
|
|
37
|
+
|
|
38
|
+
label: Optional[str] = None
|
|
39
|
+
"""Label of the block (e.g. 'human', 'persona') in the context window."""
|
|
40
|
+
|
|
41
|
+
last_updated_by_id: Optional[str] = None
|
|
42
|
+
"""The id of the user that last updated this Block."""
|
|
43
|
+
|
|
44
|
+
limit: Optional[int] = None
|
|
45
|
+
"""Character limit of the block."""
|
|
46
|
+
|
|
47
|
+
metadata: Optional[Dict[str, object]] = None
|
|
48
|
+
"""Metadata of the block."""
|
|
49
|
+
|
|
50
|
+
preserve_on_migration: Optional[bool] = None
|
|
51
|
+
"""(Deprecated) Preserve the block on template migration."""
|
|
52
|
+
|
|
53
|
+
project_id: Optional[str] = None
|
|
54
|
+
"""The associated project id."""
|
|
55
|
+
|
|
56
|
+
read_only: Optional[bool] = None
|
|
57
|
+
"""(Deprecated) Whether the agent has read-only access to the block."""
|
|
58
|
+
|
|
59
|
+
template_id: Optional[str] = None
|
|
60
|
+
"""(Deprecated) The id of the template."""
|
|
61
|
+
|
|
62
|
+
template_name: Optional[str] = None
|
|
63
|
+
"""(Deprecated) The name of the block template (if it is a template)."""
|
|
@@ -38,9 +38,6 @@ class CreateBlockParam(TypedDict, total=False):
|
|
|
38
38
|
metadata: Optional[Dict[str, object]]
|
|
39
39
|
"""Metadata of the block."""
|
|
40
40
|
|
|
41
|
-
name: Optional[str]
|
|
42
|
-
"""The id of the template."""
|
|
43
|
-
|
|
44
41
|
preserve_on_migration: Optional[bool]
|
|
45
42
|
"""Preserve the block on template migration."""
|
|
46
43
|
|
|
@@ -49,3 +46,9 @@ class CreateBlockParam(TypedDict, total=False):
|
|
|
49
46
|
|
|
50
47
|
read_only: bool
|
|
51
48
|
"""Whether the agent has read-only access to the block."""
|
|
49
|
+
|
|
50
|
+
template_id: Optional[str]
|
|
51
|
+
"""The id of the template."""
|
|
52
|
+
|
|
53
|
+
template_name: Optional[str]
|
|
54
|
+
"""Name of the block if it is a template."""
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .folder import Folder
|
|
7
|
+
|
|
8
|
+
__all__ = ["FolderListResponse"]
|
|
9
|
+
|
|
10
|
+
FolderListResponse: TypeAlias = List[Folder]
|
|
@@ -7,10 +7,10 @@ from typing_extensions import TypedDict
|
|
|
7
7
|
|
|
8
8
|
from .embedding_config_param import EmbeddingConfigParam
|
|
9
9
|
|
|
10
|
-
__all__ = ["
|
|
10
|
+
__all__ = ["FolderModifyParams"]
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class FolderModifyParams(TypedDict, total=False):
|
|
14
14
|
description: Optional[str]
|
|
15
15
|
"""The description of the source."""
|
|
16
16
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
from typing import List
|
|
3
4
|
from typing_extensions import TypeAlias
|
|
4
5
|
|
|
5
6
|
__all__ = ["AgentListResponse"]
|
|
6
7
|
|
|
7
|
-
AgentListResponse: TypeAlias = str
|
|
8
|
+
AgentListResponse: TypeAlias = List[str]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import Optional
|
|
3
|
+
from typing import List, Optional
|
|
4
4
|
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
6
|
|
|
7
7
|
from ..._models import BaseModel
|
|
8
8
|
|
|
9
|
-
__all__ = ["FileListResponse"]
|
|
9
|
+
__all__ = ["FileListResponse", "FileListResponseItem"]
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class FileListResponseItem(BaseModel):
|
|
13
13
|
source_id: str
|
|
14
14
|
"""The unique identifier of the source associated with the document."""
|
|
15
15
|
|
|
@@ -63,3 +63,6 @@ class FileListResponse(BaseModel):
|
|
|
63
63
|
|
|
64
64
|
updated_at: Optional[datetime] = None
|
|
65
65
|
"""The update date of the file."""
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
FileListResponse: TypeAlias = List[FileListResponseItem]
|
|
@@ -9,7 +9,7 @@ from .._types import SequenceNotStr
|
|
|
9
9
|
from .._utils import PropertyInfo
|
|
10
10
|
|
|
11
11
|
__all__ = [
|
|
12
|
-
"
|
|
12
|
+
"GroupModifyParams",
|
|
13
13
|
"ManagerConfig",
|
|
14
14
|
"ManagerConfigRoundRobinManagerUpdate",
|
|
15
15
|
"ManagerConfigSupervisorManagerUpdate",
|
|
@@ -19,7 +19,7 @@ __all__ = [
|
|
|
19
19
|
]
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class GroupModifyParams(TypedDict, total=False):
|
|
23
23
|
agent_ids: Optional[SequenceNotStr[str]]
|
|
24
24
|
|
|
25
25
|
description: Optional[str]
|
|
@@ -4,6 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from .message_list_params import MessageListParams as MessageListParams
|
|
6
6
|
from .message_send_params import MessageSendParams as MessageSendParams
|
|
7
|
+
from .message_modify_params import MessageModifyParams as MessageModifyParams
|
|
7
8
|
from .message_stream_params import MessageStreamParams as MessageStreamParams
|
|
8
|
-
from .
|
|
9
|
-
from .message_update_response import MessageUpdateResponse as MessageUpdateResponse
|
|
9
|
+
from .message_modify_response import MessageModifyResponse as MessageModifyResponse
|