diff --git a/ai_agent_framework_crash_course/google_adk_crash_course/5_memory_agent/README.md b/ai_agent_framework_crash_course/google_adk_crash_course/5_memory_agent/README.md index 159a8cc..491dd35 100644 --- a/ai_agent_framework_crash_course/google_adk_crash_course/5_memory_agent/README.md +++ b/ai_agent_framework_crash_course/google_adk_crash_course/5_memory_agent/README.md @@ -125,12 +125,10 @@ A **Session** is like a conversation thread that keeps track of all interactions └─────────────────────────────────────────────────────────────┘ ``` -## 🎯 Tutorial Structure +## 📚 Tutorial Structure This tutorial is divided into three progressive levels: -### 📚 **Tutorials** - 1. **[5_1_in_memory_conversation](./5_1_in_memory_conversation/README.md)** - Basic session management - InMemorySessionService for temporary conversations - Simple state management diff --git a/ai_agent_framework_crash_course/google_adk_crash_course/6_callbacks/README.md b/ai_agent_framework_crash_course/google_adk_crash_course/6_callbacks/README.md index 76256ba..88ecd1d 100644 --- a/ai_agent_framework_crash_course/google_adk_crash_course/6_callbacks/README.md +++ b/ai_agent_framework_crash_course/google_adk_crash_course/6_callbacks/README.md @@ -1,11 +1,11 @@ -# 🎯 Tutorial 6: Callbacks +# 📋 Tutorial 6: Callbacks ## 🎯 What You'll Learn - **Agent Lifecycle Callbacks**: Monitor agent creation, initialization, and cleanup - **LLM Interaction Callbacks**: Track model requests, responses, and token usage - **Tool Execution Callbacks**: Monitor tool calls, parameters, and results -## 🧠 Core Concept: Callbacks +## 💡 Core Concept: Callbacks Callbacks are functions that get executed at specific points during agent execution, allowing you to monitor, log, and control the agent's behavior without modifying the core logic. @@ -30,7 +30,7 @@ Callbacks are functions that get executed at specific points during agent execut - **Integration**: Connect agents to external systems - **Debugging**: Understand what's happening inside the agent -## 🚀 Tutorial Overview +## 📖 Tutorial Overview This tutorial covers three essential callback patterns in Google ADK: @@ -100,12 +100,12 @@ cd ../6_3_tool_execution_callbacks streamlit run app.py ``` -## 🔧 Callback Patterns +## ⚙️ Callback Patterns ### **1. Agent Lifecycle Callbacks** ```python def on_agent_start(agent_name: str): - print(f"🚀 Agent {agent_name} started") + print(f"▶️ Agent {agent_name} started") def on_agent_end(agent_name: str, result: str): print(f"✅ Agent {agent_name} completed: {result}") @@ -122,10 +122,10 @@ agent = LlmAgent( ### **2. LLM Interaction Callbacks** ```python def on_llm_request(model: str, prompt: str): - print(f"🤖 LLM Request to {model}: {prompt[:50]}...") + print(f"📤 LLM Request to {model}: {prompt[:50]}...") def on_llm_response(model: str, response: str, tokens: int): - print(f"📝 LLM Response from {model}: {tokens} tokens") + print(f"📥 LLM Response from {model}: {tokens} tokens") # Register callbacks agent = LlmAgent( @@ -154,7 +154,7 @@ agent = LlmAgent( ) ``` -## 🎯 Use Cases +## 📊 Use Cases ### **Monitoring & Analytics** - Track agent performance metrics