Skip to content

Documentation / @agentick/connector / parseTextConfirmation

Function: parseTextConfirmation() ​

parseTextConfirmation(text): ToolConfirmationResponse

Defined in: connector/src/text-utils.ts:11

Parse a natural language confirmation response.

Accepts common affirmative phrases ("yes", "y", "ok", "go ahead", "do it") and treats everything else as denial. The full text is always passed as reason so the model can interpret nuanced responses like "yes but skip the tests".

Parameters ​

text ​

string

Returns ​

ToolConfirmationResponse

Released under the ISC License.