From b3a558760819dbc6e827d7b9b3b0edb7f3dcc71c Mon Sep 17 00:00:00 2001 From: adk-bot Date: Wed, 22 Oct 2025 21:08:04 +0000 Subject: [PATCH] docs: Update static_instruction documentation --- docs/agents/llm-agents.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/agents/llm-agents.md b/docs/agents/llm-agents.md index 8a25f0429..c94d151b2 100644 --- a/docs/agents/llm-agents.md +++ b/docs/agents/llm-agents.md @@ -89,6 +89,17 @@ tells the agent: * `{artifact.var}` is used to insert the text content of the artifact named var. * If the state variable or artifact does not exist, the agent will raise an error. If you want to ignore the error, you can append a `?` to the variable name as in `{var?}`. +**`static_instruction` (Optional[types.ContentUnion]):** Static instruction content sent literally as system instruction. +... +**Content Support:** +Accepts `types.ContentUnion` which includes: +- `str`: Simple text instruction +- `types.Content`: Rich content object +- `types.Part`: Single part (text, inline_data, file_data, etc.) +- `PIL.Image.Image`: Image object +- `types.File`: File reference +- `list[PartUnion]`: List of parts + === "Python" ```python @@ -550,4 +561,4 @@ _(This example demonstrates the core concepts. More complex agents might incorpo While this page covers the core configuration of `LlmAgent`, several related concepts provide more advanced control and are detailed elsewhere: * **Callbacks:** Intercepting execution points (before/after model calls, before/after tool calls) using `before_model_callback`, `after_model_callback`, etc. See [Callbacks](../callbacks/types-of-callbacks.md). -* **Multi-Agent Control:** Advanced strategies for agent interaction, including planning (`planner`), controlling agent transfer (`disallow_transfer_to_parent`, `disallow_transfer_to_peers`), and system-wide instructions (`global_instruction`). See [Multi-Agents](multi-agents.md). +* **Multi-Agent Control:** Advanced strategies for agent interaction, including planning (`planner`), controlling agent transfer (`disallow_transfer_to_parent`, `disallow_transfer_to_peers`), and system-wide instructions (`global_instruction`). See [Multi-Agents](multi-agents.md). \ No newline at end of file