Skip to content

Commit

Permalink
🌿 Fern Regeneration -- January 25, 2025 (#11)
Browse files Browse the repository at this point in the history
* SDK regeneration
* remove name

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Caren Thomas <caren@letta.com>
  • Loading branch information
fern-api[bot] and carenthomas authored Jan 25, 2025
1 parent 8e77114 commit ab6f63b
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 65 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.languageServer": "None"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "letta-client"

[tool.poetry]
name = "letta-client"
version = "0.1.21"
version = "0.1.22"
description = ""
readme = "README.md"
authors = []
Expand Down
32 changes: 8 additions & 24 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,6 @@ client.tools.modify(
<dl>
<dd>

**name:** `typing.Optional[str]` — The name of the function.

</dd>
</dl>

<dl>
<dd>

**tags:** `typing.Optional[typing.Sequence[str]]` — Metadata tags.

</dd>
Expand Down Expand Up @@ -400,14 +392,6 @@ client.tools.create(
<dl>
<dd>

**name:** `typing.Optional[str]` — The name of the function (auto-generated from source_code if not provided).

</dd>
</dl>

<dl>
<dd>

**description:** `typing.Optional[str]` — The description of the tool.

</dd>
Expand Down Expand Up @@ -518,14 +502,6 @@ client.tools.upsert(
<dl>
<dd>

**name:** `typing.Optional[str]` — The name of the function (auto-generated from source_code if not provided).

</dd>
</dl>

<dl>
<dd>

**description:** `typing.Optional[str]` — The description of the tool.

</dd>
Expand Down Expand Up @@ -5367,6 +5343,14 @@ client.agents.messages.list(
<dl>
<dd>

**after:** `typing.Optional[str]` — Message after which to retrieve the returned messages.

</dd>
</dl>

<dl>
<dd>

**before:** `typing.Optional[str]` — Message before which to retrieve the returned messages.

</dd>
Expand Down
10 changes: 10 additions & 0 deletions src/letta_client/agents/messages/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def list(
self,
agent_id: str,
*,
after: typing.Optional[str] = None,
before: typing.Optional[str] = None,
limit: typing.Optional[int] = None,
msg_object: typing.Optional[bool] = None,
Expand All @@ -50,6 +51,9 @@ def list(
----------
agent_id : str
after : typing.Optional[str]
Message after which to retrieve the returned messages.
before : typing.Optional[str]
Message before which to retrieve the returned messages.
Expand Down Expand Up @@ -88,6 +92,7 @@ def list(
f"v1/agents/{jsonable_encoder(agent_id)}/messages",
method="GET",
params={
"after": after,
"before": before,
"limit": limit,
"msg_object": msg_object,
Expand Down Expand Up @@ -502,6 +507,7 @@ async def list(
self,
agent_id: str,
*,
after: typing.Optional[str] = None,
before: typing.Optional[str] = None,
limit: typing.Optional[int] = None,
msg_object: typing.Optional[bool] = None,
Expand All @@ -516,6 +522,9 @@ async def list(
----------
agent_id : str
after : typing.Optional[str]
Message after which to retrieve the returned messages.
before : typing.Optional[str]
Message before which to retrieve the returned messages.
Expand Down Expand Up @@ -562,6 +571,7 @@ async def main() -> None:
f"v1/agents/{jsonable_encoder(agent_id)}/messages",
method="GET",
params={
"after": after,
"before": before,
"limit": limit,
"msg_object": msg_object,
Expand Down
4 changes: 0 additions & 4 deletions src/letta_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def create_from_function(
self,
*,
func: typing.Callable,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
tags: typing.Optional[typing.Sequence[str]] = OMIT,
source_type: typing.Optional[str] = OMIT,
Expand All @@ -44,7 +43,6 @@ def create_from_function(
source_code = dedent(inspect.getsource(func))
return self.create(
source_code=source_code,
name=name,
description=description,
tags=tags,
source_type=source_type,
Expand All @@ -57,7 +55,6 @@ def upsert_from_function(
self,
*,
func: typing.Callable,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
tags: typing.Optional[typing.Sequence[str]] = OMIT,
source_type: typing.Optional[str] = OMIT,
Expand All @@ -70,7 +67,6 @@ def upsert_from_function(
source_code = dedent(inspect.getsource(func))
return self.upsert(
source_code=source_code,
name=name,
description=description,
tags=tags,
source_type=source_type,
Expand Down
2 changes: 1 addition & 1 deletion src/letta_client/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "letta-client",
"X-Fern-SDK-Version": "0.1.21",
"X-Fern-SDK-Version": "0.1.22",
}
if self.token is not None:
headers["Authorization"] = f"Bearer {self.token}"
Expand Down
30 changes: 0 additions & 30 deletions src/letta_client/tools/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def modify(
tool_id: str,
*,
description: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
tags: typing.Optional[typing.Sequence[str]] = OMIT,
source_code: typing.Optional[str] = OMIT,
source_type: typing.Optional[str] = OMIT,
Expand All @@ -160,9 +159,6 @@ def modify(
description : typing.Optional[str]
The description of the tool.
name : typing.Optional[str]
The name of the function.
tags : typing.Optional[typing.Sequence[str]]
Metadata tags.
Expand Down Expand Up @@ -202,7 +198,6 @@ def modify(
method="PATCH",
json={
"description": description,
"name": name,
"tags": tags,
"source_code": source_code,
"source_type": source_type,
Expand Down Expand Up @@ -309,7 +304,6 @@ def create(
self,
*,
source_code: str,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
tags: typing.Optional[typing.Sequence[str]] = OMIT,
source_type: typing.Optional[str] = OMIT,
Expand All @@ -325,9 +319,6 @@ def create(
source_code : str
The source code of the function.
name : typing.Optional[str]
The name of the function (auto-generated from source_code if not provided).
description : typing.Optional[str]
The description of the tool.
Expand Down Expand Up @@ -366,7 +357,6 @@ def create(
"v1/tools/",
method="POST",
json={
"name": name,
"description": description,
"tags": tags,
"source_code": source_code,
Expand Down Expand Up @@ -405,7 +395,6 @@ def upsert(
self,
*,
source_code: str,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
tags: typing.Optional[typing.Sequence[str]] = OMIT,
source_type: typing.Optional[str] = OMIT,
Expand All @@ -421,9 +410,6 @@ def upsert(
source_code : str
The source code of the function.
name : typing.Optional[str]
The name of the function (auto-generated from source_code if not provided).
description : typing.Optional[str]
The description of the tool.
Expand Down Expand Up @@ -462,7 +448,6 @@ def upsert(
"v1/tools/",
method="PUT",
json={
"name": name,
"description": description,
"tags": tags,
"source_code": source_code,
Expand Down Expand Up @@ -947,7 +932,6 @@ async def modify(
tool_id: str,
*,
description: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
tags: typing.Optional[typing.Sequence[str]] = OMIT,
source_code: typing.Optional[str] = OMIT,
source_type: typing.Optional[str] = OMIT,
Expand All @@ -965,9 +949,6 @@ async def modify(
description : typing.Optional[str]
The description of the tool.
name : typing.Optional[str]
The name of the function.
tags : typing.Optional[typing.Sequence[str]]
Metadata tags.
Expand Down Expand Up @@ -1015,7 +996,6 @@ async def main() -> None:
method="PATCH",
json={
"description": description,
"name": name,
"tags": tags,
"source_code": source_code,
"source_type": source_type,
Expand Down Expand Up @@ -1130,7 +1110,6 @@ async def create(
self,
*,
source_code: str,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
tags: typing.Optional[typing.Sequence[str]] = OMIT,
source_type: typing.Optional[str] = OMIT,
Expand All @@ -1146,9 +1125,6 @@ async def create(
source_code : str
The source code of the function.
name : typing.Optional[str]
The name of the function (auto-generated from source_code if not provided).
description : typing.Optional[str]
The description of the tool.
Expand Down Expand Up @@ -1195,7 +1171,6 @@ async def main() -> None:
"v1/tools/",
method="POST",
json={
"name": name,
"description": description,
"tags": tags,
"source_code": source_code,
Expand Down Expand Up @@ -1234,7 +1209,6 @@ async def upsert(
self,
*,
source_code: str,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
tags: typing.Optional[typing.Sequence[str]] = OMIT,
source_type: typing.Optional[str] = OMIT,
Expand All @@ -1250,9 +1224,6 @@ async def upsert(
source_code : str
The source code of the function.
name : typing.Optional[str]
The name of the function (auto-generated from source_code if not provided).
description : typing.Optional[str]
The description of the tool.
Expand Down Expand Up @@ -1299,7 +1270,6 @@ async def main() -> None:
"v1/tools/",
method="PUT",
json={
"name": name,
"description": description,
"tags": tags,
"source_code": source_code,
Expand Down
5 changes: 0 additions & 5 deletions src/letta_client/types/tool_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@


class ToolCreate(UncheckedBaseModel):
name: typing.Optional[str] = pydantic.Field(default=None)
"""
The name of the function (auto-generated from source_code if not provided).
"""

description: typing.Optional[str] = pydantic.Field(default=None)
"""
The description of the tool.
Expand Down

0 comments on commit ab6f63b

Please sign in to comment.