Category/tag attached to a tool.
Current API responses return category objects; legacy responses returned plain strings, so ToolInfo.categories accepts both.
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
Was this page helpful?