effect-io-ai

Package: @effect/ai
Module: index

index.Response

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"

Source

Since v1.0.0