Class: AgentHarness::Extensions::MessageContext

Inherits:
Object
  • Object
show all
Defined in:
lib/agent_harness/extensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider:, extensions:, mode:, options:, prompt: nil, messages: nil, tools: nil, response: nil, metadata: {}) ⇒ MessageContext

Returns a new instance of MessageContext.



77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/agent_harness/extensions.rb', line 77

def initialize(provider:, extensions:, mode:, options:, prompt: nil, messages: nil, tools: nil, response: nil,
  metadata: {})
  @provider = provider
  @extensions = extensions.freeze
  @mode = mode
  @options = options
  @prompt = prompt
  @messages = messages
  @tools = tools
  @response = response
  @metadata = 
end

Instance Attribute Details

#extensionsObject (readonly)

Returns the value of attribute extensions.



75
76
77
# File 'lib/agent_harness/extensions.rb', line 75

def extensions
  @extensions
end

#messagesObject

Returns the value of attribute messages.



74
75
76
# File 'lib/agent_harness/extensions.rb', line 74

def messages
  @messages
end

#metadataObject

Returns the value of attribute metadata.



74
75
76
# File 'lib/agent_harness/extensions.rb', line 74

def 
  @metadata
end

#modeObject (readonly)

Returns the value of attribute mode.



75
76
77
# File 'lib/agent_harness/extensions.rb', line 75

def mode
  @mode
end

#optionsObject

Returns the value of attribute options.



74
75
76
# File 'lib/agent_harness/extensions.rb', line 74

def options
  @options
end

#promptObject

Returns the value of attribute prompt.



74
75
76
# File 'lib/agent_harness/extensions.rb', line 74

def prompt
  @prompt
end

#providerObject (readonly)

Returns the value of attribute provider.



75
76
77
# File 'lib/agent_harness/extensions.rb', line 75

def provider
  @provider
end

#responseObject

Returns the value of attribute response.



74
75
76
# File 'lib/agent_harness/extensions.rb', line 74

def response
  @response
end

#toolsObject

Returns the value of attribute tools.



74
75
76
# File 'lib/agent_harness/extensions.rb', line 74

def tools
  @tools
end