org.llm4s.util

package org.llm4s.util

Members list

Type members

Classlikes

trait LiftToResult[F[_]]

Evidence that values in effect F can be lifted into Result.

Evidence that values in effect F can be lifted into Result.

The canonical instance is for cats.Id, which wraps any value in Right. Future backends with richer effects (e.g. cats.effect.IO, scala.concurrent.Future) supply their own instance to bridge into the synchronous Result error channel.

Type parameters

F

the source effect

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object LiftToResult

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
@Stable

Library of credential-detection patterns used by org.llm4s.agent.guardrails.builtin.SecretLeakGuardrail and Redaction.

Library of credential-detection patterns used by org.llm4s.agent.guardrails.builtin.SecretLeakGuardrail and Redaction.

All regex matching is performed via SecretType instances. Each type knows its own pattern, human-readable name, and the placeholder text to use when redacting.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object SqlIdentifier

Validator for PostgreSQL identifiers (table/index/column). Enforces: start with letter/, allowed [a-zA-Z0-9], max 63 chars. Returns a ProcessingError on null/invalid inputs.

Validator for PostgreSQL identifiers (table/index/column). Enforces: start with letter/, allowed [a-zA-Z0-9], max 63 chars. Returns a ProcessingError on null/invalid inputs.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type