Package com.tnsai.reasoning
Record Class ReasoningStrategyHandle.ReasoningContext
java.lang.Object
java.lang.Record
com.tnsai.reasoning.ReasoningStrategyHandle.ReasoningContext
- Record Components:
llm- the LLM client for generating responsestools- available tool definitions for the agenthistory- conversation history as role→content pairs
- Enclosing interface:
ReasoningStrategyHandle
public static record ReasoningStrategyHandle.ReasoningContext(LLMClient llm, List<Map<String,Object>> tools, List<Map<String,Object>> history)
extends Record
Context provided to the reasoning strategy by the Agent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.history()Returns the value of thehistoryrecord component.llm()Returns the value of thellmrecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
llm
Returns the value of thellmrecord component.- Returns:
- the value of the
llmrecord component
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
history
Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord component
-