Skip to main content

tool_spec_from_step

Create a ToolSpec from a tool Step. Requirements:
  • The step must be a tool step (kind="tool")
  • The step must have a Pydantic schema (tool_schema annotation or input_schema)
from coevolved.core import tool_spec_from_step

spec = tool_spec_from_step(tool_step)

tool_specs_from_steps

Generate tool specs from an iterable of tool steps:
from coevolved.core import tool_specs_from_steps

specs = tool_specs_from_steps([tool_a, tool_b])

tool_specs_from_dict

Generate tool specs from a mapping:
from coevolved.core import tool_specs_from_dict

specs = tool_specs_from_dict({"search": search_tool})

Next steps