basellmflow
25Cursor rule
Details google-adk's BaseLlmFlow, the core engine orchestrating LLM interactions, processors, tool calls, and agent transfers for LlmAgent.
Cursor rule
Details google-adk's BaseLlmFlow, the core engine orchestrating LLM interactions, processors, tool calls, and agent transfers for LlmAgent.
Cursor rule
Details google-adk's Event object, representing interaction units with author, content, actions, and metadata within a Session.
Cursor rule
In the previous chapter, we explored BaseLlmFlow, the engine that orchestrates the complex interaction between an Agent (BaseAgent / LlmAgent) and the BaseLlm, especially when handling Tools (BaseTool). We saw that the flow logic often needs access to the current session, services, agent configuration, and more.…
Cursor rule
Tutorial chapter for google-adk's Runner, detailing its role in orchestrating agent execution, managing sessions, artifacts, memory, and selecting agents.
Cursor rule
Details google-adk's Session object for conversational history/state and BaseSessionService interface for session management.
Cursor rule
Details google-adk's State object for managing session state with scopes and delta tracking.
Cursor rule
In the previous chapter, we explored BaseLlm, the abstraction enabling agents to leverage the generative power of Large Language Models. However, LLMs alone have limitations – their knowledge is often frozen in time, and they cannot directly interact with the outside world or execute specific tasks beyond text…
Cursor rule
In the previous chapter, we learned about InvocationContext, the object encapsulating all necessary information for a single agent turn. While components like callbacks receive a CallbackContext that wraps InvocationContext and provides delta-aware state access, Tools (BaseTool) require slightly more specific…
Cursor rule
Explains google-genai API Modules (Models, Chats, Files, etc.) - facades grouping related API actions accessed via the Client.
Cursor rule
Details google-genai's APIError, the base exception for API service errors, parsing code, message, status from non-200 HTTP responses.
Cursor rule
Details the internal google-genai BaseApiClient, the core component for HTTP communication, auth, and endpoint handling.
Cursor rule
Explains google-genai Chat/AsyncChat classes, stateful wrappers for managing multi-turn conversation history with generative models.
Cursor rule
Explains the google-genai Client class, the main entry point for configuring API access (Gemini/Vertex) and interacting with SDK modules.
Cursor rule
Explains google-genai's Content and Part structures, the core data format for conversational turns and multi-modal data exchange with models.
Cursor rule
Explains google-genai Function Calling Utilities, including schema generation (manual/auto), Tool definition, and the function invocation cycle.
Cursor rule
Explains google-genai's Pager/AsyncPager for simplifying iteration over paginated API list results (e.g., models.list, files.list).
Cursor rule
Explains google-genai internal Transformers (t functions) in transformers.py, which adapt user types to API formats.