add_skill
add_skill
Load and activate a skill on this agent. Skills are pluggable capability modules that
register their own tools, prompts, and configuration. The SDK ships with built-in
skills for common tasks like datetime, web_search, and math.
Raises ValueError if the skill is not found or fails to load. Use
list_skills() to see currently loaded skills, or consult the
skills catalog for all available built-in skills.
Parameters
skill_name
Registered skill name (e.g., "datetime", "web_search", "math").
params
Skill-specific configuration parameters. Each skill documents its own supported parameters.
Returns
AgentBase — Returns self for method chaining.