Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/agents/llm-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).