before_agent(
self,
state: SkillsState,
runtime: Runtime,
config: RunnableConfig
) -> SkillsStateUpdate| Name | Type | Description |
|---|---|---|
state* | SkillsState | |
runtime* | Runtime | |
config* | RunnableConfig |
Load skills metadata before agent execution (synchronous).
Loads skills from all configured sources when not yet loaded, meaning
skills_metadata is missing or None in state. If it holds a list
(from a prior turn or checkpointed session, even if empty), the load
is skipped and None is returned.
Skills are loaded in source order with later sources overriding earlier ones if they contain skills with the same name (last one wins).
Current agent state.
Runtime context.
Runnable config.