airflow.providers.common.ai.utils.tool_prefix

The tool_prefix handling shared by the toolsets that namespace their tool names.

Classes

ToolPrefixMixin

Build, and map back from, the tool names and the toolset id that a tool_prefix produces.

Functions

validate_tool_prefix(tool_prefix)

Raise ValueError if a non-empty tool_prefix is not a valid Python identifier.

Module Contents

airflow.providers.common.ai.utils.tool_prefix.validate_tool_prefix(tool_prefix)[source]

Raise ValueError if a non-empty tool_prefix is not a valid Python identifier.

class airflow.providers.common.ai.utils.tool_prefix.ToolPrefixMixin[source]

Build, and map back from, the tool names and the toolset id that a tool_prefix produces.

tool_name_conflict_hint: str = 'Pass a distinct `tool_prefix=...` to this toolset so its tool names and model-facing hints are...[source]

Was this entry helpful?