letta-client 1.0.0a8__py3-none-any.whl → 1.0.0a10__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.

Files changed (54) hide show
  1. letta_client/_version.py +1 -1
  2. letta_client/pagination.py +174 -1
  3. letta_client/resources/agents/agents.py +396 -396
  4. letta_client/resources/agents/blocks.py +200 -190
  5. letta_client/resources/agents/files.py +13 -10
  6. letta_client/resources/agents/messages.py +367 -367
  7. letta_client/resources/agents/tools.py +6 -6
  8. letta_client/resources/archives.py +121 -111
  9. letta_client/resources/batches/messages.py +14 -11
  10. letta_client/resources/blocks/blocks.py +241 -222
  11. letta_client/resources/folders/folders.py +133 -133
  12. letta_client/resources/groups/groups.py +141 -141
  13. letta_client/resources/groups/messages.py +198 -198
  14. letta_client/resources/identities/blocks.py +7 -7
  15. letta_client/resources/identities/identities.py +141 -141
  16. letta_client/resources/tools.py +794 -194
  17. letta_client/types/__init__.py +11 -8
  18. letta_client/types/{agent_update_params.py → agent_modify_params.py} +2 -2
  19. letta_client/types/agent_state.py +6 -3
  20. letta_client/types/agents/__init__.py +6 -3
  21. letta_client/types/agents/block.py +6 -3
  22. letta_client/types/agents/block_list_response.py +63 -0
  23. letta_client/types/agents/{block_update_params.py → block_modify_params.py} +8 -5
  24. letta_client/types/agents/block_modify_response.py +63 -0
  25. letta_client/types/agents/block_retrieve_response.py +63 -0
  26. letta_client/types/agents/file_list_response.py +3 -14
  27. letta_client/types/agents/{message_update_params.py → message_modify_params.py} +2 -2
  28. letta_client/types/agents/{message_update_response.py → message_modify_response.py} +2 -2
  29. letta_client/types/archive_list_params.py +3 -0
  30. letta_client/types/{archive_update_params.py → archive_modify_params.py} +2 -2
  31. letta_client/types/batches/__init__.py +0 -1
  32. letta_client/types/block_create_params.py +6 -3
  33. letta_client/types/block_create_response.py +63 -0
  34. letta_client/types/block_list_response.py +63 -0
  35. letta_client/types/{block_update_params.py → block_modify_params.py} +8 -5
  36. letta_client/types/block_modify_response.py +63 -0
  37. letta_client/types/block_retrieve_response.py +63 -0
  38. letta_client/types/create_block_param.py +6 -3
  39. letta_client/types/{folder_update_params.py → folder_modify_params.py} +2 -2
  40. letta_client/types/{group_update_params.py → group_modify_params.py} +2 -2
  41. letta_client/types/groups/__init__.py +2 -2
  42. letta_client/types/groups/{message_update_params.py → message_modify_params.py} +2 -2
  43. letta_client/types/groups/{message_update_response.py → message_modify_response.py} +2 -2
  44. letta_client/types/identities/__init__.py +1 -0
  45. letta_client/types/identities/block_list_response.py +63 -0
  46. letta_client/types/{identity_update_params.py → identity_modify_params.py} +2 -2
  47. letta_client/types/tool.py +106 -2
  48. letta_client/types/{tool_update_params.py → tool_modify_params.py} +2 -2
  49. {letta_client-1.0.0a8.dist-info → letta_client-1.0.0a10.dist-info}/METADATA +1 -1
  50. {letta_client-1.0.0a8.dist-info → letta_client-1.0.0a10.dist-info}/RECORD +52 -46
  51. letta_client/types/archive_list_response.py +0 -10
  52. letta_client/types/batches/message_list_response.py +0 -12
  53. {letta_client-1.0.0a8.dist-info → letta_client-1.0.0a10.dist-info}/WHEEL +0 -0
  54. {letta_client-1.0.0a8.dist-info → letta_client-1.0.0a10.dist-info}/licenses/LICENSE +0 -0
@@ -44,24 +44,25 @@ from .create_block_param import CreateBlockParam as CreateBlockParam
44
44
  from .folder_list_params import FolderListParams as FolderListParams
45
45
  from .terminal_tool_rule import TerminalToolRule as TerminalToolRule
46
46
  from .tool_create_params import ToolCreateParams as ToolCreateParams
47
- from .tool_update_params import ToolUpdateParams as ToolUpdateParams
47
+ from .tool_modify_params import ToolModifyParams as ToolModifyParams
48
48
  from .tool_upsert_params import ToolUpsertParams as ToolUpsertParams
49
49
  from .vector_db_provider import VectorDBProvider as VectorDBProvider
50
50
  from .agent_create_params import AgentCreateParams as AgentCreateParams
51
- from .agent_update_params import AgentUpdateParams as AgentUpdateParams
51
+ from .agent_modify_params import AgentModifyParams as AgentModifyParams
52
52
  from .archive_list_params import ArchiveListParams as ArchiveListParams
53
53
  from .batch_create_params import BatchCreateParams as BatchCreateParams
54
54
  from .block_create_params import BlockCreateParams as BlockCreateParams
55
- from .block_update_params import BlockUpdateParams as BlockUpdateParams
55
+ from .block_list_response import BlockListResponse as BlockListResponse
56
+ from .block_modify_params import BlockModifyParams as BlockModifyParams
56
57
  from .group_create_params import GroupCreateParams as GroupCreateParams
57
- from .group_update_params import GroupUpdateParams as GroupUpdateParams
58
+ from .group_modify_params import GroupModifyParams as GroupModifyParams
58
59
  from .model_list_response import ModelListResponse as ModelListResponse
59
60
  from .tool_count_response import ToolCountResponse as ToolCountResponse
60
61
  from .tool_return_message import ToolReturnMessage as ToolReturnMessage
61
62
  from .agent_count_response import AgentCountResponse as AgentCountResponse
62
63
  from .block_count_response import BlockCountResponse as BlockCountResponse
63
64
  from .folder_create_params import FolderCreateParams as FolderCreateParams
64
- from .folder_update_params import FolderUpdateParams as FolderUpdateParams
65
+ from .folder_modify_params import FolderModifyParams as FolderModifyParams
65
66
  from .group_count_response import GroupCountResponse as GroupCountResponse
66
67
  from .identity_list_params import IdentityListParams as IdentityListParams
67
68
  from .init_tool_rule_param import InitToolRuleParam as InitToolRuleParam
@@ -69,8 +70,9 @@ from .message_create_param import MessageCreateParam as MessageCreateParam
69
70
  from .text_response_format import TextResponseFormat as TextResponseFormat
70
71
  from .agent_retrieve_params import AgentRetrieveParams as AgentRetrieveParams
71
72
  from .archive_create_params import ArchiveCreateParams as ArchiveCreateParams
72
- from .archive_list_response import ArchiveListResponse as ArchiveListResponse
73
- from .archive_update_params import ArchiveUpdateParams as ArchiveUpdateParams
73
+ from .archive_modify_params import ArchiveModifyParams as ArchiveModifyParams
74
+ from .block_create_response import BlockCreateResponse as BlockCreateResponse
75
+ from .block_modify_response import BlockModifyResponse as BlockModifyResponse
74
76
  from .child_tool_rule_param import ChildToolRuleParam as ChildToolRuleParam
75
77
  from .conditional_tool_rule import ConditionalToolRule as ConditionalToolRule
76
78
  from .dynamic_manager_param import DynamicManagerParam as DynamicManagerParam
@@ -79,9 +81,10 @@ from .npm_requirement_param import NpmRequirementParam as NpmRequirementParam
79
81
  from .pip_requirement_param import PipRequirementParam as PipRequirementParam
80
82
  from .embedding_config_param import EmbeddingConfigParam as EmbeddingConfigParam
81
83
  from .identity_create_params import IdentityCreateParams as IdentityCreateParams
82
- from .identity_update_params import IdentityUpdateParams as IdentityUpdateParams
84
+ from .identity_modify_params import IdentityModifyParams as IdentityModifyParams
83
85
  from .identity_upsert_params import IdentityUpsertParams as IdentityUpsertParams
84
86
  from .parent_tool_rule_param import ParentToolRuleParam as ParentToolRuleParam
87
+ from .block_retrieve_response import BlockRetrieveResponse as BlockRetrieveResponse
85
88
  from .identity_count_response import IdentityCountResponse as IdentityCountResponse
86
89
  from .identity_property_param import IdentityPropertyParam as IdentityPropertyParam
87
90
  from .sleeptime_manager_param import SleeptimeManagerParam as SleeptimeManagerParam
@@ -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__ = ["AgentUpdateParams", "ResponseFormat", "ToolRule"]
26
+ __all__ = ["AgentModifyParams", "ResponseFormat", "ToolRule"]
27
27
 
28
28
 
29
- class AgentUpdateParams(TypedDict, total=False):
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 .block_update_params import BlockUpdateParams as BlockUpdateParams
34
+ from .block_list_response import BlockListResponse as BlockListResponse
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
@@ -40,12 +41,14 @@ from .tool_return_content import ToolReturnContent as ToolReturnContent
40
41
  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
44
+ from .block_modify_response import BlockModifyResponse as BlockModifyResponse
43
45
  from .message_cancel_params import MessageCancelParams as MessageCancelParams
46
+ from .message_modify_params import MessageModifyParams as MessageModifyParams
44
47
  from .message_stream_params import MessageStreamParams as MessageStreamParams
45
- from .message_update_params import MessageUpdateParams as MessageUpdateParams
48
+ from .block_retrieve_response import BlockRetrieveResponse as BlockRetrieveResponse
46
49
  from .file_close_all_response import FileCloseAllResponse as FileCloseAllResponse
47
50
  from .message_cancel_response import MessageCancelResponse as MessageCancelResponse
48
- from .message_update_response import MessageUpdateResponse as MessageUpdateResponse
51
+ from .message_modify_response import MessageModifyResponse as MessageModifyResponse
49
52
  from .reasoning_content_param import ReasoningContentParam as ReasoningContentParam
50
53
  from .tool_call_content_param import ToolCallContentParam as ToolCallContentParam
51
54
  from .approval_request_message import ApprovalRequestMessage as ApprovalRequestMessage
@@ -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."""
@@ -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__ = ["BlockListResponse"]
8
+
9
+
10
+ class BlockListResponse(BaseModel):
11
+ value: str
12
+ """Value of the block."""
13
+
14
+ id: Optional[str] = None
15
+ """The human-friendly ID 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)."""
@@ -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__ = ["BlockUpdateParams"]
8
+ __all__ = ["BlockModifyParams"]
9
9
 
10
10
 
11
- class BlockUpdateParams(TypedDict, total=False):
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."""
@@ -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__ = ["BlockModifyResponse"]
8
+
9
+
10
+ class BlockModifyResponse(BaseModel):
11
+ value: str
12
+ """Value of the block."""
13
+
14
+ id: Optional[str] = None
15
+ """The human-friendly ID 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)."""
@@ -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__ = ["BlockRetrieveResponse"]
8
+
9
+
10
+ class BlockRetrieveResponse(BaseModel):
11
+ value: str
12
+ """Value of the block."""
13
+
14
+ id: Optional[str] = None
15
+ """The human-friendly ID 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)."""
@@ -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 List, Optional
3
+ from typing import Optional
4
4
  from datetime import datetime
5
5
 
6
6
  from ..._models import BaseModel
7
7
 
8
- __all__ = ["FileListResponse", "File"]
8
+ __all__ = ["FileListResponse"]
9
9
 
10
10
 
11
- class File(BaseModel):
11
+ class FileListResponse(BaseModel):
12
12
  id: str
13
13
  """Unique identifier of the file-agent relationship"""
14
14
 
@@ -38,14 +38,3 @@ class File(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)"""
@@ -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
- "MessageUpdateParams",
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
- MessageUpdateParams: TypeAlias = Union[
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__ = ["MessageUpdateResponse"]
17
+ __all__ = ["MessageModifyResponse"]
18
18
 
19
- MessageUpdateResponse: TypeAlias = Annotated[
19
+ MessageModifyResponse: TypeAlias = Annotated[
20
20
  Union[
21
21
  SystemMessage,
22
22
  UserMessage,
@@ -35,3 +35,6 @@ class ArchiveListParams(TypedDict, total=False):
35
35
 
36
36
  'asc' for oldest first, 'desc' for newest first
37
37
  """
38
+
39
+ order_by: Literal["created_at"]
40
+ """Field to sort by"""
@@ -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__ = ["ArchiveUpdateParams"]
8
+ __all__ = ["ArchiveModifyParams"]
9
9
 
10
10
 
11
- class ArchiveUpdateParams(TypedDict, total=False):
11
+ class ArchiveModifyParams(TypedDict, total=False):
12
12
  description: Optional[str]
13
13
 
14
14
  name: Optional[str]
@@ -3,4 +3,3 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from .message_list_params import MessageListParams as MessageListParams
6
- from .message_list_response import MessageListResponse as MessageListResponse
@@ -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."""
@@ -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__ = ["BlockCreateResponse"]
8
+
9
+
10
+ class BlockCreateResponse(BaseModel):
11
+ value: str
12
+ """Value of the block."""
13
+
14
+ id: Optional[str] = None
15
+ """The human-friendly ID 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)."""
@@ -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__ = ["BlockListResponse"]
8
+
9
+
10
+ class BlockListResponse(BaseModel):
11
+ value: str
12
+ """Value of the block."""
13
+
14
+ id: Optional[str] = None
15
+ """The human-friendly ID 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)."""
@@ -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__ = ["BlockUpdateParams"]
8
+ __all__ = ["BlockModifyParams"]
9
9
 
10
10
 
11
- class BlockUpdateParams(TypedDict, total=False):
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."""