-
Hi, I am currently using tools = [generate_workout]
tool_node = ToolNode(tools, handle_tool_errors=True) How can I make it so that For more context, currently my class WorkoutInputs(BaseModel):
"""Any messages to send the workout planner"""
messages: list[str] = Field(
description=("List of goals and preferences specified from the user."),
)
def generate_workout(request: WorkoutInputs):
... However I'd also like to provide it access with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can check out this how to for info on how to pass graph state to a tool, lmk if you have any further questions. |
Beta Was this translation helpful? Give feedback.
-
Hey @isahers1 , actually I have one more question. Is it possible for a tool to save something to the state as well? For example, if the tool returns a dict, but I'd only like to pass a subset of the dict back to the chat LLM, and save the rest in state. |
Beta Was this translation helpful? Give feedback.
You can check out this how to for info on how to pass graph state to a tool, lmk if you have any further questions.