Call tools
__all__ = ['make_assistant_tool_call_node', 'make_regular_tool_call_node']
module-attribute
assistant_tool_call_node = make_assistant_tool_call_node(handle_tool_errors=True)
module-attribute
logger = logging.getLogger(__name__)
module-attribute
make_assistant_tool_call_node(handle_tool_errors=True)
Create a tool call node that can be used in the graph.
Note: handle_tool_errors = False is useful for testing.
make_regular_tool_call_node(handle_tool_errors=True)
Create a tool call node that can be used in the graph.
Note: handle_tool_errors = False is useful for testing.
regular_allowed_tools_getter(conf)
async
regular_tool_call_getter(tool_call_message)
responses_to_state_update(tool_response_messages)
sub_assistant_additional_input_getter(conf, state)
async
Get information from the parent run for the sub-assistant to potentially use.
Sub-assistant won't necessarily use all of this information... depends on the tool_call args.
sub_assistant_responses_to_state_update(tool_response_messages)
Update the parent state based on the tool response from the sub-assistant.
Note: If there was an error, there only be message content (with error info), no artifact.