cb_tool_apply_filters: Create a tool that adds filters and sets their values in one...

View source: R/ai_tools.R

cb_tool_apply_filtersR Documentation

Create a tool that adds filters and sets their values in one call

Description

Returns a cb_tool that combines filter addition and value assignment into a single tool call. This avoids issues with LLMs splitting the work across multiple parallel calls.

Usage

cb_tool_apply_filters(cohort)

Arguments

cohort

A Cohort object.

Value

A cb_tool object.


cohortBuilder documentation built on July 3, 2026, 9:07 a.m.