capture: Capture chat model response with proper handling

View source: R/hellmer-core.R

captureR Documentation

Capture chat model response with proper handling

Description

Capture chat model response with proper handling

Usage

capture(original_chat, prompt, type_spec, judgements, echo, ...)

Arguments

original_chat

Original chat model object

prompt

Prompt text

type_spec

Type specification for structured data

judgements

Number of judgements for structured data extraction resulting in refined data

Value

List containing response information


hellmer documentation built on June 8, 2025, 11:09 a.m.