Update Docs (#3520)
This commit is contained in:
@@ -9,7 +9,7 @@ Integrate [**Mem0**](https://github.com/mem0ai/mem0) with [Google Agent Developm
|
||||
1. Store and retrieve memories from Mem0 within Google ADK agents
|
||||
2. Multi-agent workflows with shared memory across hierarchies
|
||||
3. Retrieve relevant memories from past conversations
|
||||
4. Personalized responses
|
||||
4. Personalized responses based on user history
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -130,9 +130,9 @@ from google.adk.tools.agent_tool import AgentTool
|
||||
travel_agent = Agent(
|
||||
name="travel_specialist",
|
||||
model="gemini-2.0-flash",
|
||||
instruction="""You are a travel planning specialist. Use get_user_context to
|
||||
instruction="""You are a travel planning specialist. Use search_memory to
|
||||
understand the user's travel preferences and history before making recommendations.
|
||||
After providing advice, use store_interaction to save travel-related information.""",
|
||||
After providing advice, use save_memory to save travel-related information.""",
|
||||
description="Specialist in travel planning and recommendations",
|
||||
tools=[search_memory, save_memory]
|
||||
)
|
||||
@@ -141,9 +141,9 @@ travel_agent = Agent(
|
||||
health_agent = Agent(
|
||||
name="health_advisor",
|
||||
model="gemini-2.0-flash",
|
||||
instruction="""You are a health and wellness advisor. Use get_user_context to
|
||||
instruction="""You are a health and wellness advisor. Use search_memory to
|
||||
understand the user's health goals and dietary preferences.
|
||||
After providing advice, use store_interaction to save health-related information.""",
|
||||
After providing advice, use save_memory to save health-related information.""",
|
||||
description="Specialist in health and wellness advice",
|
||||
tools=[search_memory, save_memory]
|
||||
)
|
||||
@@ -155,7 +155,7 @@ coordinator_agent = Agent(
|
||||
instruction="""You are a coordinator that delegates requests to specialist agents.
|
||||
For travel-related questions (trips, hotels, flights, destinations), delegate to the travel specialist.
|
||||
For health-related questions (fitness, diet, wellness, exercise), delegate to the health advisor.
|
||||
Use get_user_context to understand the user before delegation.""",
|
||||
Use search_memory to understand the user before delegation.""",
|
||||
description="Coordinates requests between specialist agents",
|
||||
tools=[
|
||||
AgentTool(agent=travel_agent, skip_summarization=False),
|
||||
@@ -282,6 +282,5 @@ os.environ["GOOGLE_CLOUD_LOCATION"] = "us-central1"
|
||||
|
||||
- [Google ADK Documentation](https://google.github.io/adk-docs/)
|
||||
- [Mem0 Platform](https://app.mem0.ai/)
|
||||
- If you need further assistance, please feel free to reach out to us through the following methods:
|
||||
|
||||
<Snippet file="get-help.mdx" />
|
||||
Reference in New Issue
Block a user