File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -145,17 +145,16 @@ Loaded tools behave like callable Python objects or functions.
145
145
146
146
* ** ` toolbox-core` ** : Async tools are ` awaitable` , sync tools are called
147
147
directly.
148
+ ` ` ` py
149
+ result = await tool(param1=" value1" , param2=" value2" )
150
+ ```
151
+
148
152
* ** ` toolbox-langchain` ** : Tools conform to LangChain' s `BaseTool` interface
149
153
and are typically invoked via `.invoke()` or `.ainvoke()`, often managed by
150
154
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
+ ```
159
158
160
159
### Synchronous vs. Asynchronous Usage
161
160
You can’t perform that action at this time.
0 commit comments