letta-client 1.0.0a10__py3-none-any.whl → 1.0.0a12__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 (76) hide show
  1. letta_client/_client.py +28 -1
  2. letta_client/_streaming.py +44 -8
  3. letta_client/_version.py +1 -1
  4. letta_client/resources/__init__.py +14 -0
  5. letta_client/resources/agents/agents.py +0 -8
  6. letta_client/resources/agents/blocks.py +15 -17
  7. letta_client/resources/agents/files.py +10 -13
  8. letta_client/resources/agents/folders.py +10 -13
  9. letta_client/resources/agents/messages.py +14 -4
  10. letta_client/resources/agents/tools.py +10 -13
  11. letta_client/resources/archives.py +10 -12
  12. letta_client/resources/batches/batches.py +10 -12
  13. letta_client/resources/batches/messages.py +11 -14
  14. letta_client/resources/blocks/blocks.py +19 -22
  15. letta_client/resources/folders/agents.py +10 -13
  16. letta_client/resources/folders/files.py +9 -12
  17. letta_client/resources/folders/folders.py +10 -12
  18. letta_client/resources/groups/groups.py +1 -17
  19. letta_client/resources/identities/blocks.py +7 -7
  20. letta_client/resources/identities/identities.py +11 -29
  21. letta_client/resources/mcp_servers/__init__.py +47 -0
  22. letta_client/resources/mcp_servers/mcp_servers.py +1165 -0
  23. letta_client/resources/mcp_servers/refresh.py +192 -0
  24. letta_client/resources/mcp_servers/tools.py +351 -0
  25. letta_client/resources/runs/runs.py +11 -13
  26. letta_client/resources/steps/steps.py +1 -9
  27. letta_client/resources/tags.py +10 -13
  28. letta_client/resources/tools.py +14 -16
  29. letta_client/types/__init__.py +13 -4
  30. letta_client/types/agent_create_params.py +1 -5
  31. letta_client/types/agents/__init__.py +2 -3
  32. letta_client/types/agents/file_list_response.py +14 -3
  33. letta_client/types/agents/folder_list_response.py +7 -3
  34. letta_client/types/agents/letta_streaming_response.py +70 -0
  35. letta_client/types/agents/tool_list_response.py +10 -0
  36. letta_client/types/archive_list_response.py +10 -0
  37. letta_client/types/batch_list_response.py +10 -0
  38. letta_client/types/batches/__init__.py +1 -0
  39. letta_client/types/batches/message_list_response.py +12 -0
  40. letta_client/types/{block_list_response.py → block_response.py} +5 -5
  41. letta_client/types/folder_list_response.py +10 -0
  42. letta_client/types/folders/agent_list_response.py +2 -1
  43. letta_client/types/folders/file_list_response.py +7 -4
  44. letta_client/types/group_create_params.py +1 -5
  45. letta_client/types/group_modify_params.py +1 -5
  46. letta_client/types/identities/__init__.py +0 -1
  47. letta_client/types/identity_create_params.py +1 -5
  48. letta_client/types/identity_list_response.py +10 -0
  49. letta_client/types/identity_upsert_params.py +1 -5
  50. letta_client/types/mcp_server_create_params.py +67 -0
  51. letta_client/types/mcp_server_create_response.py +74 -0
  52. letta_client/types/mcp_server_list_response.py +86 -0
  53. letta_client/types/mcp_server_modify_params.py +76 -0
  54. letta_client/types/mcp_server_modify_response.py +74 -0
  55. letta_client/types/mcp_server_retrieve_response.py +74 -0
  56. letta_client/types/mcp_servers/__init__.py +8 -0
  57. letta_client/types/mcp_servers/refresh_trigger_params.py +12 -0
  58. letta_client/types/mcp_servers/tool_list_response.py +10 -0
  59. letta_client/types/mcp_servers/tool_run_params.py +15 -0
  60. letta_client/types/mcp_servers/tool_run_response.py +43 -0
  61. letta_client/types/run_list_response.py +10 -0
  62. letta_client/types/step_list_params.py +1 -5
  63. letta_client/types/tag_list_response.py +2 -1
  64. letta_client/types/tool.py +28 -28
  65. letta_client/types/tool_list_response.py +10 -0
  66. {letta_client-1.0.0a10.dist-info → letta_client-1.0.0a12.dist-info}/METADATA +1 -1
  67. {letta_client-1.0.0a10.dist-info → letta_client-1.0.0a12.dist-info}/RECORD +69 -52
  68. letta_client/types/agents/block_list_response.py +0 -63
  69. letta_client/types/agents/block_modify_response.py +0 -63
  70. letta_client/types/agents/block_retrieve_response.py +0 -63
  71. letta_client/types/block_create_response.py +0 -63
  72. letta_client/types/block_modify_response.py +0 -63
  73. letta_client/types/block_retrieve_response.py +0 -63
  74. letta_client/types/identities/block_list_response.py +0 -63
  75. {letta_client-1.0.0a10.dist-info → letta_client-1.0.0a12.dist-info}/WHEEL +0 -0
  76. {letta_client-1.0.0a10.dist-info → letta_client-1.0.0a12.dist-info}/licenses/LICENSE +0 -0
@@ -1,63 +0,0 @@
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)."""
@@ -1,63 +0,0 @@
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)."""
@@ -1,63 +0,0 @@
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,63 +0,0 @@
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)."""