Skip to content

Mapping

logger = logging.getLogger(__name__) module-attribute

SubAssistantToolInfoProtocol

Bases: Protocol

description instance-attribute

name instance-attribute

get_full_tools_by_name(deps, tool_names) async

Use this to get tools by their names including any dependencies necessary to run the tool.

Note: Ideally only use this for tools that will actually be used. Some of the tools require additional initialization.

get_sub_assistant_tools_for_llm_call(sub_assistant_infos)

Use this to get sub-assistant tools cheaply for use in LLM call (without any initialization).

get_tools_for_llm_call_by_name(tool_names) async

Use this to get the tools cheaply for use in LLM call (without any initialization).

Note: This is useful when the tools won't actually be used, only their args schema is needed for the LLM to see.