effect-io-ai

Package: @effect/ai
Module: index

index.Tool

Re-exports all named exports from the “./Tool.js” module as Tool.

Example

import { Tool } from "@effect/ai"
import { Schema } from "effect"

// Define a simple calculator tool
const Calculator = Tool.make("Calculator", {
  description: "Performs basic arithmetic operations",
  parameters: {
    operation: Schema.Literal("add", "subtract", "multiply", "divide"),
    a: Schema.Number,
    b: Schema.Number
  },
  success: Schema.Number
})

Signature

export * as Tool from "./Tool.js"

Source

Since v1.0.0