Class: Insika::ContextPackage

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/context/builder.rb

Overview

Builder output, consumed by the Executor in stage 5. system: String (final concatenation for with_instructions) history: [content:] (for seeding the chat) tool_context: String | nil fragments: [ContextFragment] post-cut, in canonical order (audit) budget: { cap:, used:, evicted: [source] }

Instance Attribute Summary collapse

Instance Attribute Details

#budgetObject (readonly)

Returns the value of attribute budget

Returns:

  • (Object)

    the current value of budget



13
14
15
# File 'lib/insika/context/builder.rb', line 13

def budget
  @budget
end

#fragmentsObject (readonly)

Returns the value of attribute fragments

Returns:

  • (Object)

    the current value of fragments



13
14
15
# File 'lib/insika/context/builder.rb', line 13

def fragments
  @fragments
end

#historyObject (readonly)

Returns the value of attribute history

Returns:

  • (Object)

    the current value of history



13
14
15
# File 'lib/insika/context/builder.rb', line 13

def history
  @history
end

#systemObject (readonly)

Returns the value of attribute system

Returns:

  • (Object)

    the current value of system



13
14
15
# File 'lib/insika/context/builder.rb', line 13

def system
  @system
end

#tool_contextObject (readonly)

Returns the value of attribute tool_context

Returns:

  • (Object)

    the current value of tool_context



13
14
15
# File 'lib/insika/context/builder.rb', line 13

def tool_context
  @tool_context
end