contentflag

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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