class LLM::ACPAdapter

Overview

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

Included Modules

Defined in:

llm/adapter.cr

Constructors

Instance Method Summary

Instance methods inherited from module LLM::Adapter

close : Nil close, request(prompt : String, format : String = "json") : String request, request_messages(messages : Messages, format : String = "json") : String request_messages, request_messages_with_tools(messages : Messages, _tools : String) : String request_messages_with_tools, request_with_context(system : String | Nil, user : String, format : String = "json", cache_key : String | Nil = nil) : String request_with_context, supports_context? : Bool supports_context?, supports_native_tool_calling? : Bool supports_native_tool_calling?

Constructor Detail

def self.new(client : LLM::ACPClient) #

[View source]

Instance Method Detail

def client : LLM::ACPClient #

[View source]
def close : Nil #
Description copied from module LLM::Adapter

Optional cleanup hook for adapters that manage external resources.


[View source]
def request(prompt : String, format : String = "json") : String #
Description copied from module LLM::Adapter

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


[View source]
def request_messages(messages : Messages, format : String = "json") : String #
Description copied from module LLM::Adapter

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


[View source]