Skip to main content

set_yaml_approved_tools

Function
This function is defined in the approval module.
Set the list of YAML-approved tools for the current context. This is called by the workflow runner when parsing agents.yaml with approve field.

Signature

def set_yaml_approved_tools(tools: List[str]) -> contextvars.Token

Parameters

tools
List
required
List of tool names to auto-approve

Returns

Returns
contextvars.Token
Token that can be used to reset the context