StructuredInfo

org.llm4s.context.StructuredInfo
See theStructuredInfo companion object
@Stable
final case class StructuredInfo

Structured information extracted from a message block.

Each field contains strings matched by the corresponding regex pattern in HistoryCompressor. Matches are limited to prevent digest bloat.

Value parameters

constraints

Requirement statements (must, should, cannot)

decisions

Decision statements

errors

Error messages and exception info

identifiers

IDs, UUIDs, keys found in the content

outcomes

Result and conclusion statements

statusCodes

HTTP status codes, error codes

toolUsage

Tool/function/API call mentions

urls

HTTP/HTTPS URLs

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withConstraints(constraints: Seq[String]): StructuredInfo

Sets the requirement statements.

Sets the requirement statements.

Attributes

def withDecisions(decisions: Seq[String]): StructuredInfo

Sets the decision statements.

Sets the decision statements.

Attributes

def withErrors(errors: Seq[String]): StructuredInfo

Sets the error messages.

Sets the error messages.

Attributes

def withIdentifiers(identifiers: Seq[String]): StructuredInfo

Sets the IDs, UUIDs and keys.

Sets the IDs, UUIDs and keys.

Attributes

def withOutcomes(outcomes: Seq[String]): StructuredInfo

Sets the result and conclusion statements.

Sets the result and conclusion statements.

Attributes

def withStatusCodes(statusCodes: Seq[String]): StructuredInfo

Sets the status and error codes.

Sets the status and error codes.

Attributes

def withToolUsage(toolUsage: Seq[String]): StructuredInfo

Sets the tool, function and API call mentions.

Sets the tool, function and API call mentions.

Attributes

def withUrls(urls: Seq[String]): StructuredInfo

Sets the HTTP/HTTPS URLs.

Sets the HTTP/HTTPS URLs.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product