You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**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
+
5333
5248
**assistant_message_tool_name:**`typing.Optional[str]` — The name of the designated message tool.
5334
5249
5335
5250
</dd>
@@ -5553,6 +5468,14 @@ for chunk in response:
5553
5468
<dl>
5554
5469
<dd>
5555
5470
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
+
5556
5479
**assistant_message_tool_name:**`typing.Optional[str]` — The name of the designated message tool.
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.
0 commit comments