mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-06 11:37:12 +00:00
docs: minor agent tools markdown improvement (#32367)
Minor sharpening of agent tool doc.
This commit is contained in:
parent
9a2f49df1f
commit
3137d49bd9
@ -89,7 +89,7 @@ Please see the [API reference for @tool](https://python.langchain.com/api_refere
|
||||
|
||||
## Tool artifacts
|
||||
|
||||
**Tools** are utilities that can be called by a model, and whose outputs are designed to be fed back to a model. Sometimes, however, there are artifacts of a tool's execution that we want to make accessible to downstream components in our chain or agent, but that we don't want to expose to the model itself. For example if a tool returns a custom object, a dataframe or an image, we may want to pass some metadata about this output to the model without passing the actual output to the model. At the same time, we may want to be able to access this full output elsewhere, for example in downstream tools.
|
||||
**Tools** are utilities that can be called by a model, and whose outputs are designed to be fed back to a model. Sometimes, however, there are artifacts of a tool's execution that we want to make accessible to downstream components in our chain or agent, but that we don't want to expose to the model itself. For example if a tool returns a custom object, a dataframe or an image, we may want to pass some metadata about this output to the model without passing the actual output. At the same time, we may want to be able to access this full output elsewhere, for example in downstream tools.
|
||||
|
||||
```python
|
||||
@tool(response_format="content_and_artifact")
|
||||
|
Loading…
Reference in New Issue
Block a user