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
{{ message }}
Repository navigation
Commit 9928b62
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add an opt-in to leave escaped placeholders in instructions as written
`InstructionUtils.injectSessionState` resolves a placeholder right after `$` or
`\` like any other and keeps the character in front: `Price: ${price}` becomes
`Price: $9.99`, and `${expression}` fails the request when `expression` is not
in the state. adk-python leaves such placeholders as written since 2.10.0
(google/adk-python@0caecd2).
`LlmAgent.Builder.preserveEscapedPlaceholders(boolean)`, also available as
`preserve_escaped_placeholders` in YAML agent configs, lets an agent opt into the
same rule. The agent's flag applies to its instruction and the root agent's flag
to the global instruction; `GlobalInstructionPlugin` takes it as a constructor
argument. The default is unchanged.
0 commit comments