Help us shape the future of Go! Take the 2026 Go Developer Survey

contentflag

package
v0.18.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package contentflag carries an agent's Content(false) on a run's context, so mw.Audit's line can leave out what the agent keeps out of its records (the error text: model-visible content) without a public accessor. The loop sets it at a run's start only when it matters — the agent set Content(false), or a parent run's mark must be lifted for a child that did not — so a run without Content(false) pays nothing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Off

func Off(ctx context.Context) bool

Off reports whether the run on ctx is an agent's under Content(false).

func With

func With(ctx context.Context, off bool) context.Context

With returns ctx marked with the running agent's content choice: off is true under Content(false).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL