Skills

class Skills(val skills: List<Skill>) : Capability(source)

Gives the agent skills on demand, the way Pydantic AI (Harness) loads deferred capabilities: the model first sees only each skill's name and description; calling load_capability(id) returns the skill's instructions under a # Skill: <name> heading. Bundled files are not read and scripts never run.

Only load skills from sources you trust — a skill body becomes model instructions.

Constructors

Link copied to clipboard
constructor(skills: List<Skill>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val instructions: String?

Guidance for the model, or null.

Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun context(): String?

Per-turn context read when a turn starts (e.g. a memory snapshot), placed after the static instructions. It may change between turns, so keep it small and at the end.

Link copied to clipboard
open suspend override fun tools(): List<AgentTool>

Tools the capability contributes.