class

LLM::ACPAdapter

Inherits LLM::Adapter < Reference < Object

Adapter for ACP-based agents (codex, gemini, claude, etc.).

Constructors

new(client : LLM::ACPClient)
Source

Instance methods

client
Source
close

Optional cleanup hook for adapters that manage external resources.

Source
request(prompt : String, format : String = "json") : String

Send a single prompt and get a response as a String.

Source
request_messages(messages : Messages, format : String = "json") : String

Send chat-style messages (system/user) and get a response as a String.

Source