LLM behaviour and mock implementation for testing.
Summary
Types
Callbacks
Functions
@spec gemini_backend() :: module()
Returns the Gemini backend module.
Generate a response using the configured LLM backend.
Options
:retry- Retry options keyword list, orfalseto disable (default: enabled with defaults):circuit_breaker- Circuit breaker server name/pid, ornilto disable (default:nil)
Examples
ADK.LLM.generate("gemini-flash-latest", %{messages: msgs})
ADK.LLM.generate("gemini-flash-latest", %{messages: msgs}, retry: [max_retries: 5])
ADK.LLM.generate("gemini-flash-latest", %{messages: msgs}, retry: false)
ADK.LLM.generate("gemini-flash-latest", %{messages: msgs}, circuit_breaker: :llm_breaker)