Skip to content

Commit eb06e9a

Browse files
committed
fix
1 parent 84a3a87 commit eb06e9a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src_py/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ When responding to a tool call, include the `tool_call_id` in the result content
224224
## Configuration Options
225225

226226
```python
227-
from agenthub import ThinkingLevel
227+
from agenthub import PromptCaching, ThinkingLevel
228228

229229
config = {
230230
"max_tokens": 500,
@@ -233,6 +233,7 @@ config = {
233233
"tool_choice": "auto", # "auto", "required", "none", or ["tool_name"]
234234
"thinking_level": ThinkingLevel.HIGH,
235235
"system_prompt": "You are a helpful assistant",
236+
"prompt_caching": PromptCaching.ENABLE,
236237
"trace_id": "agent1/conversation_001" # Optional: save conversation trace
237238
}
238239
```
@@ -272,7 +273,7 @@ Start a web server to browse and view saved conversations:
272273
from agenthub import Tracer
273274

274275
# Start web server
275-
Tracer().start_web_server(host="127.0.0.1", port=5000)
276+
Tracer("path/to/cache").start_web_server(host="127.0.0.1", port=5000)
276277
```
277278

278279
Then visit `http://127.0.0.1:5000` in your browser to browse saved conversations.

src_py/agenthub/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,5 @@ class UniConfig(TypedDict):
140140
thinking_level: NotRequired[ThinkingLevel]
141141
tool_choice: NotRequired[ToolChoice]
142142
system_prompt: NotRequired[str]
143-
trace_id: NotRequired[str]
144143
prompt_caching: NotRequired[PromptCaching]
144+
trace_id: NotRequired[str]

0 commit comments

Comments
 (0)