Documentation / @agentick/connector-telegram / parseTextConfirmation
Function: parseTextConfirmation() ​
parseTextConfirmation(
text):ToolConfirmationResponse
Defined in: confirmation-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