Skip to content

Commit

Permalink
docs: Update concepts.mdx (#26496)
Browse files Browse the repository at this point in the history
- Fix comments in Python
- Fix repeated sentences
  • Loading branch information
ystkfujii authored Sep 16, 2024
1 parent 9f5960a commit bd42344
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/docs/concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -595,10 +595,10 @@ tool_call = ai_msg.tool_calls[0]
# -> ToolCall(args={...}, id=..., ...)
tool_message = tool.invoke(tool_call)
# -> ToolMessage(
content="tool result foobar...",
tool_call_id=...,
name="tool_name"
)
# content="tool result foobar...",
# tool_call_id=...,
# name="tool_name"
# )
```

If you are invoking the tool this way and want to include an [artifact](/docs/concepts/#toolmessage) for the ToolMessage, you will need to have the tool return two things.
Expand Down Expand Up @@ -717,8 +717,6 @@ During run-time LangChain configures an appropriate callback manager (e.g., [Cal

The `callbacks` property is available on most objects throughout the API (Models, Tools, Agents, etc.) in two different places:

The callbacks are available on most objects throughout the API (Models, Tools, Agents, etc.) in two different places:

- **Request time callbacks**: Passed at the time of the request in addition to the input data.
Available on all standard `Runnable` objects. These callbacks are INHERITED by all children
of the object they are defined on. For example, `chain.invoke({"number": 25}, {"callbacks": [handler]})`.
Expand Down

0 comments on commit bd42344

Please sign in to comment.