Package: @effect/ai
Module: index
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"
Since v1.0.0