mirror of https://github.com/kortix-ai/suna.git
bump to version 0.1.9
This commit is contained in:
parent
82505692ca
commit
b1be407975
15
README.md
15
README.md
|
@ -96,7 +96,7 @@ class FilesTool(Tool):
|
|||
pass
|
||||
```
|
||||
|
||||
4. Use the Thread Manager with streaming and tool execution:
|
||||
4. Use the Thread Manager with tool execution:
|
||||
```python
|
||||
import asyncio
|
||||
from agentpress.thread_manager import ThreadManager
|
||||
|
@ -124,20 +124,11 @@ async def main():
|
|||
"content": "You are a helpful assistant with calculation abilities."
|
||||
},
|
||||
model_name="anthropic/claude-3-5-sonnet-latest",
|
||||
stream=True,
|
||||
native_tool_calling=True,
|
||||
execute_tools=True,
|
||||
execute_tools_on_stream=True
|
||||
native_tool_calling=True, # Contrary to xml_tool_calling = True
|
||||
parallel_tool_execution=True # Will execute tools in parallel, contrary to sequential (one after another)
|
||||
)
|
||||
|
||||
# Handle streaming response
|
||||
if isinstance(response, AsyncGenerator):
|
||||
async for chunk in response:
|
||||
if hasattr(chunk.choices[0], 'delta'):
|
||||
delta = chunk.choices[0].delta
|
||||
if hasattr(delta, 'content') and delta.content:
|
||||
print(delta.content, end='', flush=True)
|
||||
|
||||
asyncio.run(main())
|
||||
```
|
||||
|
||||
|
|
|
@ -121,6 +121,7 @@ async def run_agent(thread_id: str, use_xml: bool = True, max_iterations: int =
|
|||
await pre_iteration()
|
||||
|
||||
state = await state_manager.export_store()
|
||||
|
||||
state_message = {
|
||||
"role": "user",
|
||||
"content": f"""
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "agentpress"
|
||||
version = "0.1.8"
|
||||
version = "0.1.9"
|
||||
description = "Building blocks for AI Agents"
|
||||
authors = ["marko-kraemer <mail@markokraemer.com>"]
|
||||
readme = "README.md"
|
||||
|
|
Loading…
Reference in New Issue