Class: Phronomy::Agent::LLMInputBuildContext
- Inherits:
-
Data
- Object
- Data
- Phronomy::Agent::LLMInputBuildContext
- Defined in:
- lib/phronomy/agent/llm_input_build_context.rb
Overview
Immutable metadata passed to before_llm_input hooks. Runtime objects such as RubyLLM::Chat, messages and the mutable Agent instance are not exposed.
Instance Attribute Summary collapse
-
#agent_definition_id ⇒ Object
readonly
Returns the value of attribute agent_definition_id.
-
#agent_id ⇒ Object
readonly
Returns the value of attribute agent_id.
-
#call_sequence ⇒ Object
readonly
Returns the value of attribute call_sequence.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#definition_version ⇒ Object
readonly
Returns the value of attribute definition_version.
Instance Method Summary collapse
-
#initialize(**values) ⇒ LLMInputBuildContext
constructor
A new instance of LLMInputBuildContext.
Constructor Details
#initialize(**values) ⇒ LLMInputBuildContext
Returns a new instance of LLMInputBuildContext.
11 12 13 14 |
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 11 def initialize(**values) super(**values.merge(config: Immutable.copy(values.fetch(:config, {})))) freeze end |
Instance Attribute Details
#agent_definition_id ⇒ Object (readonly)
Returns the value of attribute agent_definition_id
7 8 9 |
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7 def agent_definition_id @agent_definition_id end |
#agent_id ⇒ Object (readonly)
Returns the value of attribute agent_id
7 8 9 |
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7 def agent_id @agent_id end |
#call_sequence ⇒ Object (readonly)
Returns the value of attribute call_sequence
7 8 9 |
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7 def call_sequence @call_sequence end |
#config ⇒ Object (readonly)
Returns the value of attribute config
7 8 9 |
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7 def config @config end |
#definition_version ⇒ Object (readonly)
Returns the value of attribute definition_version
7 8 9 |
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7 def definition_version @definition_version end |