Class: AgentHarness::Extensions::MessageContext
- Inherits:
-
Object
- Object
- AgentHarness::Extensions::MessageContext
- Defined in:
- lib/agent_harness/extensions.rb
Instance Attribute Summary collapse
-
#extensions ⇒ Object
readonly
Returns the value of attribute extensions.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#options ⇒ Object
Returns the value of attribute options.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#response ⇒ Object
Returns the value of attribute response.
-
#tools ⇒ Object
Returns the value of attribute tools.
Instance Method Summary collapse
-
#initialize(provider:, extensions:, mode:, options:, prompt: nil, messages: nil, tools: nil, response: nil, metadata: {}) ⇒ MessageContext
constructor
A new instance of MessageContext.
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 = @prompt = prompt @messages = @tools = tools @response = response @metadata = end |
Instance Attribute Details
#extensions ⇒ Object (readonly)
Returns the value of attribute extensions.
75 76 77 |
# File 'lib/agent_harness/extensions.rb', line 75 def extensions @extensions end |
#messages ⇒ Object
Returns the value of attribute messages.
74 75 76 |
# File 'lib/agent_harness/extensions.rb', line 74 def @messages end |
#metadata ⇒ Object
Returns the value of attribute metadata.
74 75 76 |
# File 'lib/agent_harness/extensions.rb', line 74 def @metadata end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
75 76 77 |
# File 'lib/agent_harness/extensions.rb', line 75 def mode @mode end |
#options ⇒ Object
Returns the value of attribute options.
74 75 76 |
# File 'lib/agent_harness/extensions.rb', line 74 def @options end |
#prompt ⇒ Object
Returns the value of attribute prompt.
74 75 76 |
# File 'lib/agent_harness/extensions.rb', line 74 def prompt @prompt end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
75 76 77 |
# File 'lib/agent_harness/extensions.rb', line 75 def provider @provider end |
#response ⇒ Object
Returns the value of attribute response.
74 75 76 |
# File 'lib/agent_harness/extensions.rb', line 74 def response @response end |
#tools ⇒ Object
Returns the value of attribute tools.
74 75 76 |
# File 'lib/agent_harness/extensions.rb', line 74 def tools @tools end |