base-teams / 参考数据包结构 /get_weather_agent.txt
airsltd's picture
update
1ca84d9
{'after_agent_callback': None,
'after_model_callback': None,
'after_tool_callback': None,
'before_agent_callback': None,
'before_model_callback': <function my_before_model_callback at 0x1169d5e40>,
'before_tool_callback': None,
'code_executor': None,
'description': 'Agent to answer questions about the time and weather in a '
'city.',
'disallow_transfer_to_parent': False,
'disallow_transfer_to_peers': False,
'examples': None,
'generate_content_config': None,
'global_instruction': '',
'include_contents': 'default',
'input_schema': None,
'instruction': 'You are a helpful agent who can answer user questions about '
'the time and weather in a city.before you answer, you should '
"say your name: 'I am weather_time_agent'",
'model': 'gemini-2.5-flash-preview-04-17',
'name': 'weather_time_agent',
'output_key': None,
'output_schema': None,
'parent_agent': None,
'planner': None,
'sub_agents': [LlmAgent(name='greeting_agent', description='Handles simple greetings and hellos', parent_agent=LlmAgent(name='weather_time_agent', description='Agent to answer questions about the time and weather in a city.', parent_agent=None, sub_agents=[LlmAgent(name='greeting_agent', description='Handles simple greetings and hellos', parent_agent=LlmAgent(name='weather_time_agent', description='Agent to answer questions about the time and weather in a city.', parent_agent=None, sub_agents=[...], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are a helpful agent who can answer user questions about the time and weather in a city.before you answer, you should say your name: 'I am weather_time_agent'", global_instruction='', tools=[<function get_weather at 0x116afd300>, <function get_current_time at 0x116afd080>], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None), sub_agents=[], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are the Greeting Agent. Your ONLY task is to provide a friendly greeting to the user. Do not engage in any other conversation or tasks.before you answer, you should say your name: 'I am greeting_agent'", global_instruction='', tools=[], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None), LlmAgent(name='farewell_agent', description='Handles simple farewells and goodbyes', parent_agent=LlmAgent(name='weather_time_agent', description='Agent to answer questions about the time and weather in a city.', parent_agent=None, sub_agents=[...], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are a helpful agent who can answer user questions about the time and weather in a city.before you answer, you should say your name: 'I am weather_time_agent'", global_instruction='', tools=[<function get_weather at 0x116afd300>, <function get_current_time at 0x116afd080>], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None), sub_agents=[], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are the Farewell Agent. Your ONLY task is to provide a polite goodbye message. If not about goodbye, just transfer to weather_time_agentDo not perform any other actions.before you answer, you should say your name: 'I am farewell_agent'", global_instruction='', tools=[], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None)], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are a helpful agent who can answer user questions about the time and weather in a city.before you answer, you should say your name: 'I am weather_time_agent'", global_instruction='', tools=[<function get_weather at 0x116afd300>, <function get_current_time at 0x116afd080>], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None), sub_agents=[], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are the Greeting Agent. Your ONLY task is to provide a friendly greeting to the user. Do not engage in any other conversation or tasks.before you answer, you should say your name: 'I am greeting_agent'", global_instruction='', tools=[], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None),
LlmAgent(name='farewell_agent', description='Handles simple farewells and goodbyes', parent_agent=LlmAgent(name='weather_time_agent', description='Agent to answer questions about the time and weather in a city.', parent_agent=None, sub_agents=[LlmAgent(name='greeting_agent', description='Handles simple greetings and hellos', parent_agent=LlmAgent(name='weather_time_agent', description='Agent to answer questions about the time and weather in a city.', parent_agent=None, sub_agents=[...], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are a helpful agent who can answer user questions about the time and weather in a city.before you answer, you should say your name: 'I am weather_time_agent'", global_instruction='', tools=[<function get_weather at 0x116afd300>, <function get_current_time at 0x116afd080>], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None), sub_agents=[], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are the Greeting Agent. Your ONLY task is to provide a friendly greeting to the user. Do not engage in any other conversation or tasks.before you answer, you should say your name: 'I am greeting_agent'", global_instruction='', tools=[], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None), LlmAgent(name='farewell_agent', description='Handles simple farewells and goodbyes', parent_agent=LlmAgent(name='weather_time_agent', description='Agent to answer questions about the time and weather in a city.', parent_agent=None, sub_agents=[...], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are a helpful agent who can answer user questions about the time and weather in a city.before you answer, you should say your name: 'I am weather_time_agent'", global_instruction='', tools=[<function get_weather at 0x116afd300>, <function get_current_time at 0x116afd080>], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None), sub_agents=[], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are the Farewell Agent. Your ONLY task is to provide a polite goodbye message. If not about goodbye, just transfer to weather_time_agentDo not perform any other actions.before you answer, you should say your name: 'I am farewell_agent'", global_instruction='', tools=[], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None)], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are a helpful agent who can answer user questions about the time and weather in a city.before you answer, you should say your name: 'I am weather_time_agent'", global_instruction='', tools=[<function get_weather at 0x116afd300>, <function get_current_time at 0x116afd080>], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None), sub_agents=[], before_agent_callback=None, after_agent_callback=None, model='gemini-2.5-flash-preview-04-17', instruction="You are the Farewell Agent. Your ONLY task is to provide a polite goodbye message. If not about goodbye, just transfer to weather_time_agentDo not perform any other actions.before you answer, you should say your name: 'I am farewell_agent'", global_instruction='', tools=[], generate_content_config=None, disallow_transfer_to_parent=False, disallow_transfer_to_peers=False, include_contents='default', input_schema=None, output_schema=None, output_key=None, planner=None, code_executor=None, examples=None, before_model_callback=<function my_before_model_callback at 0x1169d5e40>, after_model_callback=None, before_tool_callback=None, after_tool_callback=None)],
'tools': [<function get_weather at 0x116afd300>,
<function get_current_time at 0x116afd080>]}