Skip to content

Commit b1be407

Browse files
committed
bump to version 0.1.9
1 parent 8250569 commit b1be407

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class FilesTool(Tool):
9696
pass
9797
```
9898

99-
4. Use the Thread Manager with streaming and tool execution:
99+
4. Use the Thread Manager with tool execution:
100100
```python
101101
import asyncio
102102
from agentpress.thread_manager import ThreadManager
@@ -124,20 +124,11 @@ async def main():
124124
"content": "You are a helpful assistant with calculation abilities."
125125
},
126126
model_name="anthropic/claude-3-5-sonnet-latest",
127-
stream=True,
128-
native_tool_calling=True,
129127
execute_tools=True,
130-
execute_tools_on_stream=True
128+
native_tool_calling=True, # Contrary to xml_tool_calling = True
129+
parallel_tool_execution=True # Will execute tools in parallel, contrary to sequential (one after another)
131130
)
132131

133-
# Handle streaming response
134-
if isinstance(response, AsyncGenerator):
135-
async for chunk in response:
136-
if hasattr(chunk.choices[0], 'delta'):
137-
delta = chunk.choices[0].delta
138-
if hasattr(delta, 'content') and delta.content:
139-
print(delta.content, end='', flush=True)
140-
141132
asyncio.run(main())
142133
```
143134

agentpress/agents/simple_web_dev/agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ async def after_iteration():
121121
await pre_iteration()
122122

123123
state = await state_manager.export_store()
124+
124125
state_message = {
125126
"role": "user",
126127
"content": f"""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "agentpress"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = "Building blocks for AI Agents"
55
authors = ["marko-kraemer <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)