core/tool

Shared tool type — used by both the registry and individual tool modules.

Types

pub type Tool {
  Tool(
    name: String,
    description: String,
    schema: json.Json,
    handler: fn(String) -> Result(String, String),
    parallel_safe: Bool,
  )
}

Constructors

  • Tool(
      name: String,
      description: String,
      schema: json.Json,
      handler: fn(String) -> Result(String, String),
      parallel_safe: Bool,
    )
Search Document