Class: Phronomy::Agent::LLMInputBuildContext

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute agent_definition_id

Returns:

  • (Object)

    the current value of 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_idObject (readonly)

Returns the value of attribute agent_id

Returns:

  • (Object)

    the current value of agent_id



7
8
9
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7

def agent_id
  @agent_id
end

#call_sequenceObject (readonly)

Returns the value of attribute call_sequence

Returns:

  • (Object)

    the current value of call_sequence



7
8
9
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7

def call_sequence
  @call_sequence
end

#configObject (readonly)

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



7
8
9
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7

def config
  @config
end

#definition_versionObject (readonly)

Returns the value of attribute definition_version

Returns:

  • (Object)

    the current value of definition_version



7
8
9
# File 'lib/phronomy/agent/llm_input_build_context.rb', line 7

def definition_version
  @definition_version
end