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