Skip to content

Commit 1c94a17

Browse files
committed
Release 0.1.9
1 parent 722ecad commit 1c94a17

File tree

6 files changed

+18
-3
lines changed

6 files changed

+18
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "letta-client"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = ""
55
readme = "README.md"
66
authors = []

src/letta/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
ToolReturnMessage,
114114
ToolReturnMessageStatus,
115115
ToolRuleType,
116+
ToolType,
116117
UsageStatistics,
117118
User,
118119
UserCreate,
@@ -275,6 +276,7 @@
275276
"ToolReturnMessage",
276277
"ToolReturnMessageStatus",
277278
"ToolRuleType",
279+
"ToolType",
278280
"UnprocessableEntityError",
279281
"UpdateAgentToolRulesItem",
280282
"UsageStatistics",

src/letta/core/client_wrapper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "letta-client",
19-
"X-Fern-SDK-Version": "0.1.8",
19+
"X-Fern-SDK-Version": "0.1.9",
2020
}
2121
if self.token is not None:
2222
headers["Authorization"] = f"Bearer {self.token}"

src/letta/types/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
from .tool_return_message import ToolReturnMessage
117117
from .tool_return_message_status import ToolReturnMessageStatus
118118
from .tool_rule_type import ToolRuleType
119+
from .tool_type import ToolType
119120
from .usage_statistics import UsageStatistics
120121
from .user import User
121122
from .user_create import UserCreate
@@ -239,6 +240,7 @@
239240
"ToolReturnMessage",
240241
"ToolReturnMessageStatus",
241242
"ToolRuleType",
243+
"ToolType",
242244
"UsageStatistics",
243245
"User",
244246
"UserCreate",

src/letta/types/letta_schemas_tool_tool.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from ..core.unchecked_base_model import UncheckedBaseModel
44
import typing
55
import pydantic
6+
from .tool_type import ToolType
67
from ..core.pydantic_utilities import IS_PYDANTIC_V2
78

89

@@ -23,6 +24,11 @@ class LettaSchemasToolTool(UncheckedBaseModel):
2324
The human-friendly ID of the Tool
2425
"""
2526

27+
tool_type: typing.Optional[ToolType] = pydantic.Field(default=None)
28+
"""
29+
The type of the tool.
30+
"""
31+
2632
description: typing.Optional[str] = pydantic.Field(default=None)
2733
"""
2834
The description of the tool.
@@ -48,7 +54,7 @@ class LettaSchemasToolTool(UncheckedBaseModel):
4854
Metadata tags.
4955
"""
5056

51-
source_code: str = pydantic.Field()
57+
source_code: typing.Optional[str] = pydantic.Field(default=None)
5258
"""
5359
The source code of the function.
5460
"""

src/letta/types/tool_type.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
ToolType = typing.Union[typing.Literal["custom", "letta_core", "letta_memory_core"], typing.Any]

0 commit comments

Comments
 (0)