class

ActiveAgent::Providers::Test

Inherits ActiveAgent::StreamingProvider < ActiveAgent::Provider < ActiveAgent::Provider < Reference < Object

Constructors

script
Source

Instance methods

chat(request : ProviderRequest) : ProviderResponse
Source
requests
Source
stream_chat(request : ProviderRequest, & : String -> Nil) : ProviderResponse

Streaming works the same, emitting the final text as one chunk (loop mechanics are covered elsewhere; deltas are provider detail).

Source
text(body : String, usage : Usage = Usage.new) : Nil

Queue a plain-text turn (the "model's" final answer).

Source
tool_call(name : String, arguments : String, id : String = "call_#{rand(1000)}", usage : Usage = Usage.new) : Nil

Queue a turn where the "model" asks for a tool.

Source