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

#contentObject?

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)

#errorContextProviderError?

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)

#provenanceString?

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)

#statusSymbol

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)