CoAgent8 - Source API
    Preparing search index...

    Function rememberApprovedModel

    • Adds a model the user approved with "remember" to governance.models.allow of the file.

      Parameters

      • model: string

        Model identifier to remember.

      • Optionaloptions: AbortSignal | BackendReadContext | FileLockOptions

        Optional file lock options, read context, or cancellation signal.

      Returns Promise<boolean>

      Whether the list changed.

      A model the user also denies or always asks for stays so: deny and ask win.

      ToolError on invalid model identifier, cancellation, or expired budget.

      When the configuration cannot be locked, read, validated or written.