Package: @effect/ai
Module: Response
Response part representing reasoning or chain-of-thought content.
Contains the internal reasoning process or explanation from the large language model.
Example
import { Response } from "@effect/ai"
const reasoningPart: Response.ReasoningPart = Response.makePart("reasoning", {
text: "Let me think step by step: First I need to analyze the user's question...",
})
Signature
export interface ReasoningPart extends BasePart<"reasoning", ReasoningPartMetadata> {
/**
* The reasoning or thought process text.
*/
readonly text: string
}
Since v1.0.0