ToolFunction

ch.linkyard.mcp.server.ToolFunction
See theToolFunction companion trait
object ToolFunction

Attributes

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

Members list

Type members

Classlikes

enum Effect

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Info(name: String, title: Option[String], description: Option[String], effect: Effect, isOpenWorld: Boolean)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ToolError(content: List[Content], _meta: Meta) extends RuntimeException

Attributes

Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def native[F[_]](info: Info, argsSchema: JsonSchema, f: (JsonObject, CallContext[F]) => F[Response], resultSchema: Option[JsonSchema], meta: Option[JsonObject]): ToolFunction[F]
def structured[F[_] : MonadThrow, A : JsonSchemaEncoder, B : AsObject](info: Info, f: (A, CallContext[F]) => F[B], meta: Option[JsonObject]): ToolFunction[F]
def text[F[_] : MonadThrow, A : Decoder](info: Info, f: (A, CallContext[F]) => F[String], meta: Option[JsonObject]): ToolFunction[F]