Skip to content

Commit d397835

Browse files
committed
Release 0.1.23
1 parent 4eedc97 commit d397835

File tree

248 files changed

+5542
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+5542
-113
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "letta-client"
33

44
[tool.poetry]
55
name = "letta-client"
6-
version = "0.1.22"
6+
version = "0.1.23"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

+158-6
Original file line numberDiff line numberDiff line change
@@ -3984,6 +3984,110 @@ client.tag.list_tags()
39843984
</dl>
39853985

39863986

3987+
</dd>
3988+
</dl>
3989+
</details>
3990+
3991+
## Templates
3992+
<details><summary><code>client.templates.<a href="src/letta_client/templates/client.py">createagentsfromtemplate</a>(...)</code></summary>
3993+
<dl>
3994+
<dd>
3995+
3996+
#### 📝 Description
3997+
3998+
<dl>
3999+
<dd>
4000+
4001+
<dl>
4002+
<dd>
4003+
4004+
Creates agents given a template
4005+
</dd>
4006+
</dl>
4007+
</dd>
4008+
</dl>
4009+
4010+
#### 🔌 Usage
4011+
4012+
<dl>
4013+
<dd>
4014+
4015+
<dl>
4016+
<dd>
4017+
4018+
```python
4019+
from letta_client import Letta
4020+
4021+
client = Letta(
4022+
token="YOUR_TOKEN",
4023+
)
4024+
client.templates.createagentsfromtemplate(
4025+
project="project",
4026+
template_version="template_version",
4027+
)
4028+
4029+
```
4030+
</dd>
4031+
</dl>
4032+
</dd>
4033+
</dl>
4034+
4035+
#### ⚙️ Parameters
4036+
4037+
<dl>
4038+
<dd>
4039+
4040+
<dl>
4041+
<dd>
4042+
4043+
**project:** `str` — The project slug
4044+
4045+
</dd>
4046+
</dl>
4047+
4048+
<dl>
4049+
<dd>
4050+
4051+
**template_version:** `str` — The template version, formatted as {template-name}:{version-number} or {template-name}:latest
4052+
4053+
</dd>
4054+
</dl>
4055+
4056+
<dl>
4057+
<dd>
4058+
4059+
**agent_name:** `typing.Optional[str]` — The name of the agent, optional otherwise a random one will be assigned
4060+
4061+
</dd>
4062+
</dl>
4063+
4064+
<dl>
4065+
<dd>
4066+
4067+
**memory_variables:** `typing.Optional[typing.Dict[str, str]]` — The memory variables to assign to the agent
4068+
4069+
</dd>
4070+
</dl>
4071+
4072+
<dl>
4073+
<dd>
4074+
4075+
**tool_variables:** `typing.Optional[typing.Dict[str, str]]` — The tool variables to assign to the agent
4076+
4077+
</dd>
4078+
</dl>
4079+
4080+
<dl>
4081+
<dd>
4082+
4083+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
4084+
4085+
</dd>
4086+
</dl>
4087+
</dd>
4088+
</dl>
4089+
4090+
39874091
</dd>
39884092
</dl>
39894093
</details>
@@ -5367,7 +5471,7 @@ client.agents.messages.list(
53675471
<dl>
53685472
<dd>
53695473

5370-
**msg_object:** `typing.Optional[bool]`If true, returns Message objects. If false, return LettaMessage objects.
5474+
**use_assistant_message:** `typing.Optional[bool]`Whether to use assistant messages
53715475

53725476
</dd>
53735477
</dl>
@@ -5383,7 +5487,7 @@ client.agents.messages.list(
53835487
<dl>
53845488
<dd>
53855489

5386-
**assistant_message_tool_kwarg:** `typing.Optional[str]` — The name of the message argument in the designated message tool.
5490+
**assistant_message_tool_kwarg:** `typing.Optional[str]` — The name of the message argument.
53875491

53885492
</dd>
53895493
</dl>
@@ -5476,7 +5580,23 @@ client.agents.messages.create(
54765580
<dl>
54775581
<dd>
54785582

5479-
**config:** `typing.Optional[LettaRequestConfig]` — Configuration options for the LettaRequest.
5583+
**use_assistant_message:** `typing.Optional[bool]` — Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects.
5584+
5585+
</dd>
5586+
</dl>
5587+
5588+
<dl>
5589+
<dd>
5590+
5591+
**assistant_message_tool_name:** `typing.Optional[str]` — The name of the designated message tool.
5592+
5593+
</dd>
5594+
</dl>
5595+
5596+
<dl>
5597+
<dd>
5598+
5599+
**assistant_message_tool_kwarg:** `typing.Optional[str]` — The name of the message argument in the designated message tool.
54805600

54815601
</dd>
54825602
</dl>
@@ -5587,7 +5707,7 @@ client.agents.messages.modify(
55875707
<dl>
55885708
<dd>
55895709

5590-
**tool_calls:** `typing.Optional[typing.Sequence[ChatCompletionMessageToolCall]]` — The list of tool calls requested.
5710+
**tool_calls:** `typing.Optional[typing.Sequence[ChatCompletionMessageToolCallInput]]` — The list of tool calls requested.
55915711

55925712
</dd>
55935713
</dl>
@@ -5691,7 +5811,23 @@ for chunk in response:
56915811
<dl>
56925812
<dd>
56935813

5694-
**config:** `typing.Optional[LettaRequestConfig]` — Configuration options for the LettaRequest.
5814+
**use_assistant_message:** `typing.Optional[bool]` — Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects.
5815+
5816+
</dd>
5817+
</dl>
5818+
5819+
<dl>
5820+
<dd>
5821+
5822+
**assistant_message_tool_name:** `typing.Optional[str]` — The name of the designated message tool.
5823+
5824+
</dd>
5825+
</dl>
5826+
5827+
<dl>
5828+
<dd>
5829+
5830+
**assistant_message_tool_kwarg:** `typing.Optional[str]` — The name of the message argument in the designated message tool.
56955831

56965832
</dd>
56975833
</dl>
@@ -5792,7 +5928,23 @@ client.agents.messages.create_async(
57925928
<dl>
57935929
<dd>
57945930

5795-
**config:** `typing.Optional[LettaRequestConfig]` — Configuration options for the LettaRequest.
5931+
**use_assistant_message:** `typing.Optional[bool]` — Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects.
5932+
5933+
</dd>
5934+
</dl>
5935+
5936+
<dl>
5937+
<dd>
5938+
5939+
**assistant_message_tool_name:** `typing.Optional[str]` — The name of the designated message tool.
5940+
5941+
</dd>
5942+
</dl>
5943+
5944+
<dl>
5945+
<dd>
5946+
5947+
**assistant_message_tool_kwarg:** `typing.Optional[str]` — The name of the message argument in the designated message tool.
57965948

57975949
</dd>
57985950
</dl>

0 commit comments

Comments
 (0)