Package: @effect/ai
Module: index
Re-exports all named exports from the “./Response.js” module as Response.
Example
import { Response } from "@effect/ai"
// Create a simple text response part
const textResponse = Response.makePart("text", {
text: "The weather is sunny today!"
})
// Create a tool call response part
const toolCallResponse = Response.makePart("tool-call", {
id: "call_123",
name: "get_weather",
params: { city: "San Francisco" },
providerExecuted: false
})
Signature
export * as Response from "./Response.js"
Since v1.0.0