Class: RailsAiBridge::Registry::ContextProviderClient::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_ai_bridge/registry/context_provider_client.rb

Overview

Result of a single provider tool call.

Instance Attribute Summary collapse

Instance Attribute Details

#content ⇒ Object?

Returns normalized tool result content when successful.

Returns:

  • (Object, nil) —

    normalized tool result content when successful



23
# File 'lib/rails_ai_bridge/registry/context_provider_client.rb', line 23

Result = Struct.new(:status, :content, :provenance, :error, keyword_init: true)

#error ⇒ ContextProviderError?

Returns typed error when not successful.

Returns:



23
# File 'lib/rails_ai_bridge/registry/context_provider_client.rb', line 23

Result = Struct.new(:status, :content, :provenance, :error, keyword_init: true)

#provenance ⇒ String?

Returns provider identity and source status label.

Returns:

  • (String, nil) —

    provider identity and source status label



23
# File 'lib/rails_ai_bridge/registry/context_provider_client.rb', line 23

Result = Struct.new(:status, :content, :provenance, :error, keyword_init: true)

#status ⇒ Symbol

Returns one of :success, :error.

Returns:

  • (Symbol) —

    one of :success, :error



23
# File 'lib/rails_ai_bridge/registry/context_provider_client.rb', line 23

Result = Struct.new(:status, :content, :provenance, :error, keyword_init: true)