Skip to content

chore(config): Add _config suffix to all yaml-based agent examples #2573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ instruction: |
You should always perform the previous 3 steps when asking for a roll and checking prime numbers.
You should not rely on the previous history on prime results.
tools:
- name: core_callback.tools.roll_die
- name: core_callback.tools.check_prime
- name: core_callback_config.tools.roll_die
- name: core_callback_config.tools.check_prime
before_agent_callbacks:
- name: core_callback.callbacks.before_agent_callback1
- name: core_callback.callbacks.before_agent_callback2
- name: core_callback.callbacks.before_agent_callback3
- name: core_callback_config.callbacks.before_agent_callback1
- name: core_callback_config.callbacks.before_agent_callback2
- name: core_callback_config.callbacks.before_agent_callback3
after_agent_callbacks:
- name: core_callback.callbacks.after_agent_callback1
- name: core_callback.callbacks.after_agent_callback2
- name: core_callback.callbacks.after_agent_callback3
- name: core_callback_config.callbacks.after_agent_callback1
- name: core_callback_config.callbacks.after_agent_callback2
- name: core_callback_config.callbacks.after_agent_callback3
before_model_callbacks:
- name: core_callback.callbacks.before_model_callback
- name: core_callback_config.callbacks.before_model_callback
after_model_callbacks:
- name: core_callback.callbacks.after_model_callback
- name: core_callback_config.callbacks.after_model_callback
before_tool_callbacks:
- name: core_callback.callbacks.before_tool_callback1
- name: core_callback.callbacks.before_tool_callback2
- name: core_callback.callbacks.before_tool_callback3
- name: core_callback_config.callbacks.before_tool_callback1
- name: core_callback_config.callbacks.before_tool_callback2
- name: core_callback_config.callbacks.before_tool_callback3
after_tool_callbacks:
- name: core_callback.callbacks.after_tool_callback1
- name: core_callback.callbacks.after_tool_callback2
- name: core_callback.callbacks.after_tool_callback3
- name: core_callback_config.callbacks.after_tool_callback1
- name: core_callback_config.callbacks.after_tool_callback2
- name: core_callback_config.callbacks.after_tool_callback3
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MyCustomAgentConfig(BaseAgentConfig):
model_config = ConfigDict(
extra="forbid",
)
agent_class: str = "core_cutom_agent.my_agents.MyCustomAgent"
agent_class: str = "core_cutom_agent_config.my_agents.MyCustomAgent"
my_field: str = ""


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json
name: working_agent
agent_class: core_custom_agent.my_agents.MyCustomAgent
agent_class: core_custom_agent_config.my_agents.MyCustomAgent
description: Handles all the work.
my_field: my_field_value
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ instruction: |
Never attempt to determine prime numbers manually.
Return the prime number results to the root agent.
tools:
- name: ma_llm.check_prime
- name: multi_agent_llm_config.check_prime
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ instruction: |

When asked to roll a die, you must call the roll_die tool with the number of sides as an integer.
tools:
- name: ma_llm.roll_die
- name: multi_agent_llm_config.roll_die
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sub_agents:
- config_path: roll_agent.yaml
- config_path: prime_agent.yaml
tools:
- name: ma_llm.example_tool
- name: multi_agent_llm_config.example_tool
generate_content_config:
safety_settings:
- category: HARM_CATEGORY_DANGEROUS_CONTENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ instruction: |
If the user query is about anything else, you should answer it yourself.
sub_agents:
- config_path: ./work_agent.yaml
- code: sub_agents.life_agent.agent
- code: sub_agents_config.life_agent.agent
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ instruction: |
You should always perform the previous 3 steps when asking for a roll and checking prime numbers.
You should not rely on the previous history on prime results.
tools:
- name: tool_functions.tools.roll_die
- name: tool_functions.tools.check_prime
- name: tool_functions_config.tools.roll_die
- name: tool_functions_config.tools.check_prime
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ instruction: |
call reimburse() to reimburse the amount to the employee. If the manager
rejects, you will inform the employee of the rejection.
tools:
- name: tool_human_in_the_loop.tools.reimburse
- name: tool_human_in_the_loop_config.tools.reimburse
- name: LongRunningFunctionTool
args:
func: tool_human_in_the_loop.tools.ask_for_approval
func: tool_human_in_the_loop_config.tools.ask_for_approval