You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(skills): Allow opt-in session state injection in skill instructions
Add an opt-in frontmatter metadata flag `adk_inject_session_state`
(mirroring the existing `adk_additional_tools` convention). When set to
true, `LoadSkillTool` routes the skill instructions through the existing
`inject_session_state` utility before returning them, so a skill body can
reference dynamic session state (`{var_name}`, `{artifact.file_name}`,
`{optional?}`) the same way a system prompt can.
Defaults to disabled so literal braces in skill markdown are preserved
and existing skills are unaffected. A missing required variable returns a
`STATE_INJECTION_ERROR` tool result rather than raising.
Backport of upstream PR google#5974 (issue google#5973), adapted to
the vzgpt-core skill activation logic.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments