Skip to content

Commit 01a84f3

Browse files
committed
Release 0.1.7
1 parent 163d178 commit 01a84f3

21 files changed

+387
-376
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.6"
3+
version = "0.1.7"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

+136-104
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ client = Letta(
758758
)
759759
client.tools.run_tool_from_source(
760760
source_code="source_code",
761-
args="args",
761+
args={"key": "value"},
762762
)
763763

764764
```
@@ -783,7 +783,15 @@ client.tools.run_tool_from_source(
783783
<dl>
784784
<dd>
785785

786-
**args:** `str` — The arguments to pass to the tool (as stringified JSON).
786+
**args:** `typing.Dict[str, str]` — The arguments to pass to the tool.
787+
788+
</dd>
789+
</dl>
790+
791+
<dl>
792+
<dd>
793+
794+
**env_vars:** `typing.Optional[typing.Dict[str, str]]` — The environment variables to pass to the tool.
787795

788796
</dd>
789797
</dl>
@@ -1985,7 +1993,7 @@ client.agents.create(
19851993
<dl>
19861994
<dd>
19871995

1988-
**user_id:** `typing.Optional[str]`
1996+
**variables:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]` — The variables that should be set for the agent.
19891997

19901998
</dd>
19911999
</dl>
@@ -2599,107 +2607,6 @@ client.agents.get_agent_memory_blocks(
25992607
</dl>
26002608

26012609

2602-
</dd>
2603-
</dl>
2604-
</details>
2605-
2606-
<details><summary><code>client.agents.<a href="src/letta/agents/client.py">create_agent_message_async</a>(...)</code></summary>
2607-
<dl>
2608-
<dd>
2609-
2610-
#### 📝 Description
2611-
2612-
<dl>
2613-
<dd>
2614-
2615-
<dl>
2616-
<dd>
2617-
2618-
Asynchronously process a user message and return a job ID.
2619-
The actual processing happens in the background, and the status can be checked using the job ID.
2620-
</dd>
2621-
</dl>
2622-
</dd>
2623-
</dl>
2624-
2625-
#### 🔌 Usage
2626-
2627-
<dl>
2628-
<dd>
2629-
2630-
<dl>
2631-
<dd>
2632-
2633-
```python
2634-
from letta import Letta, MessageCreate
2635-
2636-
client = Letta(
2637-
token="YOUR_TOKEN",
2638-
)
2639-
client.agents.create_agent_message_async(
2640-
agent_id="agent_id",
2641-
messages=[
2642-
MessageCreate(
2643-
role="user",
2644-
text="text",
2645-
)
2646-
],
2647-
)
2648-
2649-
```
2650-
</dd>
2651-
</dl>
2652-
</dd>
2653-
</dl>
2654-
2655-
#### ⚙️ Parameters
2656-
2657-
<dl>
2658-
<dd>
2659-
2660-
<dl>
2661-
<dd>
2662-
2663-
**agent_id:** `str`
2664-
2665-
</dd>
2666-
</dl>
2667-
2668-
<dl>
2669-
<dd>
2670-
2671-
**messages:** `typing.Sequence[MessageCreate]` — The messages to be sent to the agent.
2672-
2673-
</dd>
2674-
</dl>
2675-
2676-
<dl>
2677-
<dd>
2678-
2679-
**assistant_message_tool_name:** `typing.Optional[str]` — The name of the designated message tool.
2680-
2681-
</dd>
2682-
</dl>
2683-
2684-
<dl>
2685-
<dd>
2686-
2687-
**assistant_message_tool_kwarg:** `typing.Optional[str]` — The name of the message argument in the designated message tool.
2688-
2689-
</dd>
2690-
</dl>
2691-
2692-
<dl>
2693-
<dd>
2694-
2695-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
2696-
2697-
</dd>
2698-
</dl>
2699-
</dd>
2700-
</dl>
2701-
2702-
27032610
</dd>
27042611
</dl>
27052612
</details>
@@ -5330,6 +5237,14 @@ client.agents.messages.create(
53305237
<dl>
53315238
<dd>
53325239

5240+
**use_assistant_message:** `typing.Optional[bool]` — Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects.
5241+
5242+
</dd>
5243+
</dl>
5244+
5245+
<dl>
5246+
<dd>
5247+
53335248
**assistant_message_tool_name:** `typing.Optional[str]` — The name of the designated message tool.
53345249

53355250
</dd>
@@ -5553,6 +5468,14 @@ for chunk in response:
55535468
<dl>
55545469
<dd>
55555470

5471+
**use_assistant_message:** `typing.Optional[bool]` — Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects.
5472+
5473+
</dd>
5474+
</dl>
5475+
5476+
<dl>
5477+
<dd>
5478+
55565479
**assistant_message_tool_name:** `typing.Optional[str]` — The name of the designated message tool.
55575480

55585481
</dd>
@@ -5585,6 +5508,115 @@ for chunk in response:
55855508
</dl>
55865509

55875510

5511+
</dd>
5512+
</dl>
5513+
</details>
5514+
5515+
<details><summary><code>client.agents.messages.<a href="src/letta/agents/messages/client.py">create_async</a>(...)</code></summary>
5516+
<dl>
5517+
<dd>
5518+
5519+
#### 📝 Description
5520+
5521+
<dl>
5522+
<dd>
5523+
5524+
<dl>
5525+
<dd>
5526+
5527+
Asynchronously process a user message and return a job ID.
5528+
The actual processing happens in the background, and the status can be checked using the job ID.
5529+
</dd>
5530+
</dl>
5531+
</dd>
5532+
</dl>
5533+
5534+
#### 🔌 Usage
5535+
5536+
<dl>
5537+
<dd>
5538+
5539+
<dl>
5540+
<dd>
5541+
5542+
```python
5543+
from letta import Letta, MessageCreate
5544+
5545+
client = Letta(
5546+
token="YOUR_TOKEN",
5547+
)
5548+
client.agents.messages.create_async(
5549+
agent_id="agent_id",
5550+
messages=[
5551+
MessageCreate(
5552+
role="user",
5553+
text="text",
5554+
)
5555+
],
5556+
)
5557+
5558+
```
5559+
</dd>
5560+
</dl>
5561+
</dd>
5562+
</dl>
5563+
5564+
#### ⚙️ Parameters
5565+
5566+
<dl>
5567+
<dd>
5568+
5569+
<dl>
5570+
<dd>
5571+
5572+
**agent_id:** `str`
5573+
5574+
</dd>
5575+
</dl>
5576+
5577+
<dl>
5578+
<dd>
5579+
5580+
**messages:** `typing.Sequence[MessageCreate]` — The messages to be sent to the agent.
5581+
5582+
</dd>
5583+
</dl>
5584+
5585+
<dl>
5586+
<dd>
5587+
5588+
**use_assistant_message:** `typing.Optional[bool]` — Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects.
5589+
5590+
</dd>
5591+
</dl>
5592+
5593+
<dl>
5594+
<dd>
5595+
5596+
**assistant_message_tool_name:** `typing.Optional[str]` — The name of the designated message tool.
5597+
5598+
</dd>
5599+
</dl>
5600+
5601+
<dl>
5602+
<dd>
5603+
5604+
**assistant_message_tool_kwarg:** `typing.Optional[str]` — The name of the message argument in the designated message tool.
5605+
5606+
</dd>
5607+
</dl>
5608+
5609+
<dl>
5610+
<dd>
5611+
5612+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
5613+
5614+
</dd>
5615+
</dl>
5616+
</dd>
5617+
</dl>
5618+
5619+
55885620
</dd>
55895621
</dl>
55905622
</details>

0 commit comments

Comments
 (0)