ExaSearchToolConfig

org.llm4s.config.ExaSearchToolConfig
See theExaSearchToolConfig companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def validateApiKey(key: String): Result[String]

Validate API key is non-empty.

Validate API key is non-empty.

Attributes

def validateHttps(url: String): Result[String]

Validate URL uses HTTPS protocol.

Validate URL uses HTTPS protocol.

Attributes

def validateMaxCharacters(n: Int): Result[Int]

Validate maximum characters is positive.

Validate maximum characters is positive.

Attributes

def validateNumResults(n: Int): Result[Int]

Validate number of search results is positive.

Validate number of search results is positive.

Attributes

def validateSearchType(s: String): Result[String]

Validate search type is one of Exa's allowed values.

Validate search type is one of Exa's allowed values.

Attributes

Validate entire ExaSearchToolConfig. Used by both config loading (fail-fast) and tool creation (defensive).

Validate entire ExaSearchToolConfig. Used by both config loading (fail-fast) and tool creation (defensive).

Attributes