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
18 changes: 18 additions & 0 deletions docs/agents/multi-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,24 @@ Allows an [`LlmAgent`](llm-agents.md) to treat another `BaseAgent` instance as a
# The resulting image Part is returned to the Artist agent as the tool result.
```

!!! note "Controlling Plugin Inheritance"
When you wrap an agent with `AgentTool`, you can control whether it inherits plugins from the parent runner using the `include_plugins` parameter.

* `include_plugins=True` (default): The child agent inherits all plugins from the parent.
* `include_plugins=False`: The child agent runs in an isolated environment without inheriting any plugins from the parent. This is useful when you need to ensure an agent's execution is self-contained and not affected by the parent's plugin environment.

=== "Python"

```python
from google.adk.tools import agent_tool

# Isolate the image_agent from parent plugins
image_tool_isolated = agent_tool.AgentTool(
agent=image_agent,
include_plugins=False
)
```

=== "Typescript"

```typescript
Expand Down
Loading