Replies: 1 comment
-
Yes, including a formatting instruction in the response of a tool using Additionally, the LangChain documentation provides examples of formatting instructions within tool responses for multi-agent projects. The Your approach of including detailed formatting instructions in the tool's response is aligned with the recommended practices. |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
Hello @dosu,
I have my multi-agent project that uses various tools, using create_react_agent, and to format the output that the LLM will present, I include a formatting instruction in the response. Is the correct way to do it???
Here is an example of how I format the output in the tool:
@tool
async def tool_fetch_promotions_or_offers(customer_code: str):
"""
Useful for fetching promotions or offers available to the customer.
"""
Thank you
System Info
langchain==0.2.6
langchain-community==0.2.6
langchain-core==0.2.10
langchain-experimental==0.0.62
langchain-openai==0.1.13
langchain-qdrant==0.1.0
langchain-text-splitters==0.2.1
Beta Was this translation helpful? Give feedback.
All reactions