Skip to content

Commit 8e825cb

Browse files
committed
doc: Improve README
1 parent 5df10f7 commit 8e825cb

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,16 @@ Loaded tools behave like callable Python objects or functions.
145145
146146
* **`toolbox-core`**: Async tools are `awaitable`, sync tools are called
147147
directly.
148+
```py
149+
result = await tool(param1="value1", param2="value2")
150+
```
151+
148152
* **`toolbox-langchain`**: Tools conform to LangChain's `BaseTool` interface
149153
and are typically invoked via `.invoke()` or `.ainvoke()`, often managed by
150154
a LangGraph agent.
151-
152-
```py
153-
# toolbox-core
154-
result = await tool(param1="value1", param2="value2")
155-
156-
# toolbox-langchain
157-
result = await tool.ainvoke({"param1": "value1", "param2": "value2"})
158-
```
155+
```py
156+
result = await tool.ainvoke({"param1": "value1", "param2": "value2"})
157+
```
159158
160159
### Synchronous vs. Asynchronous Usage
161160

0 commit comments

Comments
 (0)