Skip to content

Update ADK doc according to issue #796 - 7 - Agent static_instruction parameter#806

Closed
adk-bot wants to merge 1 commit into
mainfrom
agent-changes-20251022-210804
Closed

Update ADK doc according to issue #796 - 7 - Agent static_instruction parameter#806
adk-bot wants to merge 1 commit into
mainfrom
agent-changes-20251022-210804

Conversation

@adk-bot

@adk-bot adk-bot commented Oct 22, 2025

Copy link
Copy Markdown
Collaborator

This pull request updates the documentation for the static_instruction parameter of LlmAgent, as requested in issue #796.

@joefernandez joefernandez changed the title Update ADK doc according to issue #796 - 7 Update ADK doc according to issue #796 - 7 - Agent static_instruction parameter Nov 4, 2025
@jcwriter74

Copy link
Copy Markdown
Collaborator

LlmAgent.static_instruction now supports types.ContentUnion.

The static_instruction parameter of LlmAgent now accepts a wider range of types.

Proposed Change:

In docs/agents/llm-agents.md, update the description of static_instruction.

Current state:

The documentation may not fully describe the supported types for static_instruction.

Proposed Change:

**`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

Reasoning:
To accurately reflect the enhanced capabilities of the static_instruction parameter.

Reference:

src/google/adk/agents/llm_agent.py

@jcwriter74

jcwriter74 commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

@jcwriter74

Copy link
Copy Markdown
Collaborator

!!! Omit last comment on @jcwriter74 jcwriter74 mentioned this pull request 8 minutes ago
#1887

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants