Package com.tnsai.integration.scop
Record Class AgentConfiguration.AgentSettings
java.lang.Object
java.lang.Record
com.tnsai.integration.scop.AgentConfiguration.AgentSettings
- Enclosing class:
AgentConfiguration
The
llm of one Agents entry, or of a file that holds only LLM settings.- Since:
- 0.17.5
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aAgentSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fromJson(org.json.JSONObject entry) Decodes an entry that holds only LLM settings,{"llm": {...}}, the field optional, without reading any file.final inthashCode()Returns a hash code value for this object.llm()Returns the value of thellmrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentSettings
Creates an instance of aAgentSettingsrecord class.- Parameters:
llm- the value for thellmrecord component
-
-
Method Details
-
fromJson
Decodes an entry that holds only LLM settings,{"llm": {...}}, the field optional, without reading any file. LLM settings go underllm, as{"llm": {"temperature": 0.2}}, and a flat setting such as{"temperature": 0.2}is an unknown field.knowledgeandrolesconfigure the agent type, in the run file'sAgents.<Type>entry, whichAgentConfiguration.parse(org.json.JSONObject)reads, or in the class's@Configfile, so they fail here.- Parameters:
entry- one entry, as a JSON object- Returns:
- the entry's
llm - Throws:
IllegalArgumentException- if the entry has a field other thanllm, a flat LLM setting,knowledgeorrolesincluded, or anllmthat is not an object; aknowledgeSourceskey says where knowledge movedLLMConfigurationException- ifllmholds an unknown or invalid field- Since:
- 0.17.5
-
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
-