refactor: remote remote agent as there is no use case and it's not implemented properly

PiperOrigin-RevId: 760652423
This commit is contained in:
Xiang (Sean) Zhou
2025-05-19 09:23:59 -07:00
committed by Copybara-Service
parent 0497fc578c
commit 3f117391a5
2 changed files with 1 additions and 62 deletions

View File

@@ -12,11 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import sys
from google.adk import Agent
from google.adk.agents import RemoteAgent
from google.adk.examples import Example
from google.adk.sessions import Session
from google.genai import types
@@ -135,21 +132,13 @@ hotel_agent = Agent(
)
idea_agent = RemoteAgent(
model='gemini-1.5-pro',
name='idea_agent',
description='Provide travel ideas base on the destination.',
url='http://localhost:8000/agent/run',
)
root_agent = Agent(
model='gemini-1.5-pro',
name='root_agent',
instruction="""
You are a helpful customer support assistant for Swiss Airlines.
""",
sub_agents=[flight_agent, hotel_agent, idea_agent],
sub_agents=[flight_agent, hotel_agent],
flow='auto',
examples=[
Example(