getAgent
Get the AgentBase
that owns this skill instance. Called internally from setup() and tool
handlers to interact with the agent’s configuration, tools, or global data.
Throws Error when called before the skill has been attached. The
SkillManager calls setAgent() as part of
addSkill(); only call getAgent() from setup() or tool handlers where
attachment is guaranteed.
Returns
AgentBase — the owning agent.