LLM::Adapter
A normalized adapter interface for LLM clients.
Implementations should return a String response (JSON text after any provider-specific cleanup).
Instance methods
Send a single prompt and get a response as a String.
Send chat-style messages (system/user) and get a response as a String.
Request next step using provider-native tool definitions. Implementations that do not support this can fallback to regular JSON-mode requests.
request_with_context(system : String | Nil, user : String, format : String = "json", cache_key : String | Nil = nil) : String
Context-aware request. Adapters that support provider-side context can reuse it using a cache_key. Default implementation falls back to request_messages without context reuse.