Skip to content

Commit 357b331

Browse files
authored
docs: Update Plugins page (#780)
Add links to code examples, fix repetition of tips
1 parent 6fff69e commit 357b331

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/plugins/index.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Plugins
22

3-
## What is a Plugin?
4-
53
A Plugin in Agent Development Kit (ADK) is a custom code module that can be
64
executed at various stages of an agent workflow lifecycle using callback hooks.
75
You use Plugins for functionality that is applicable across your agent workflow.
@@ -34,8 +32,6 @@ Some typical applications of Plugins are as follows:
3432
If your ADK workflow uses Plugins, you must run your workflow without the
3533
web interface.
3634

37-
Tip: When implementing security guardrails and policies, use ADK Plugins for better modularity and flexibility than Callbacks. For more details, see [Callbacks and Plugins for Security Guardrails](../safety/index.md#callbacks-and-plugins-for-security-guardrails).
38-
3935
## How do Plugins work?
4036

4137
An ADK Plugin extends the `BasePlugin` class and contains one or more
@@ -510,3 +506,13 @@ async def after_run_callback(
510506
self, *, invocation_context: InvocationContext
511507
) -> Optional[None]:
512508
```
509+
510+
## Next steps
511+
512+
Check out these resources for developing and applying Plugins to your ADK
513+
projects:
514+
515+
- For more ADK Plugin code examples, see the
516+
[ADK Python repository](https://github.com/google/adk-python/tree/main/src/google/adk/plugins).
517+
- For information on applying Plugins for security purposes, see
518+
[Callbacks and Plugins for Security Guardrails](/adk-docs/safety/#callbacks-and-plugins-for-security-guardrails).

0 commit comments

Comments
 (0)