Skip to content

Commit 43f302c

Browse files
wuliang229copybara-github
authored andcommitted
chore(config): Add _config suffix to all yaml-based agent examples
Also expand agent folder name to full spelling, e.g. ma --> multi_agent PiperOrigin-RevId: 795926902
1 parent ecaa7b4 commit 43f302c

46 files changed

Lines changed: 26 additions & 26 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
File renamed without changes.
File renamed without changes.

contributing/samples/core_callback/root_agent.yaml renamed to contributing/samples/core_callback_config/root_agent.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ instruction: |
1919
You should always perform the previous 3 steps when asking for a roll and checking prime numbers.
2020
You should not rely on the previous history on prime results.
2121
tools:
22-
- name: core_callback.tools.roll_die
23-
- name: core_callback.tools.check_prime
22+
- name: core_callback_config.tools.roll_die
23+
- name: core_callback_config.tools.check_prime
2424
before_agent_callbacks:
25-
- name: core_callback.callbacks.before_agent_callback1
26-
- name: core_callback.callbacks.before_agent_callback2
27-
- name: core_callback.callbacks.before_agent_callback3
25+
- name: core_callback_config.callbacks.before_agent_callback1
26+
- name: core_callback_config.callbacks.before_agent_callback2
27+
- name: core_callback_config.callbacks.before_agent_callback3
2828
after_agent_callbacks:
29-
- name: core_callback.callbacks.after_agent_callback1
30-
- name: core_callback.callbacks.after_agent_callback2
31-
- name: core_callback.callbacks.after_agent_callback3
29+
- name: core_callback_config.callbacks.after_agent_callback1
30+
- name: core_callback_config.callbacks.after_agent_callback2
31+
- name: core_callback_config.callbacks.after_agent_callback3
3232
before_model_callbacks:
33-
- name: core_callback.callbacks.before_model_callback
33+
- name: core_callback_config.callbacks.before_model_callback
3434
after_model_callbacks:
35-
- name: core_callback.callbacks.after_model_callback
35+
- name: core_callback_config.callbacks.after_model_callback
3636
before_tool_callbacks:
37-
- name: core_callback.callbacks.before_tool_callback1
38-
- name: core_callback.callbacks.before_tool_callback2
39-
- name: core_callback.callbacks.before_tool_callback3
37+
- name: core_callback_config.callbacks.before_tool_callback1
38+
- name: core_callback_config.callbacks.before_tool_callback2
39+
- name: core_callback_config.callbacks.before_tool_callback3
4040
after_tool_callbacks:
41-
- name: core_callback.callbacks.after_tool_callback1
42-
- name: core_callback.callbacks.after_tool_callback2
43-
- name: core_callback.callbacks.after_tool_callback3
41+
- name: core_callback_config.callbacks.after_tool_callback1
42+
- name: core_callback_config.callbacks.after_tool_callback2
43+
- name: core_callback_config.callbacks.after_tool_callback3
File renamed without changes.

contributing/samples/core_custom_agent/__init__.py renamed to contributing/samples/core_custom_agent_config/__init__.py

File renamed without changes.

contributing/samples/core_custom_agent/my_agents.py renamed to contributing/samples/core_custom_agent_config/my_agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class MyCustomAgentConfig(BaseAgentConfig):
3434
model_config = ConfigDict(
3535
extra="forbid",
3636
)
37-
agent_class: str = "core_cutom_agent.my_agents.MyCustomAgent"
37+
agent_class: str = "core_cutom_agent_config.my_agents.MyCustomAgent"
3838
my_field: str = ""
3939

4040

contributing/samples/core_custom_agent/root_agent.yaml renamed to contributing/samples/core_custom_agent_config/root_agent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/google/adk-python/refs/heads/main/src/google/adk/agents/config_schemas/AgentConfig.json
22
name: working_agent
3-
agent_class: core_custom_agent.my_agents.MyCustomAgent
3+
agent_class: core_custom_agent_config.my_agents.MyCustomAgent
44
description: Handles all the work.
55
my_field: my_field_value

contributing/samples/core_config/root_agent.yaml renamed to contributing/samples/core_generate_content_config_config/root_agent.yaml

File renamed without changes.

0 commit comments

Comments
 (0)