all

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 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 all blank-imports every built-in agent so their init() registrations run. A host (the proxy, a sidecar plugin) imports this package for its side effects, then asks the agent package for the agents. Import it for effect:

import _ "github.com/rossoctl/context-guru/agent/all"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClientCompaction

func IsClientCompaction(h http.Header, body []byte) bool

IsClientCompaction reports whether body is the client's own compaction request: the client's mark first, then the prompt match in the thread package. It is the ONE call for a host. The proxy passes r.Header, a plugin host such as Cortex passes pctx.Headers, and the bifrost adapter passes nil, which leaves the prompt match as the fallback. Pass the result to the thread Tracker as agentCompaction.

func MarkedCompaction

func MarkedCompaction(h http.Header, body []byte) bool

MarkedCompaction reports whether the client marked this request as its own compaction, by a mark that needs no text: a context-guru plugin header, or a built-in agent's own request metadata (Codex). A host that has no headers (the bifrost adapter today) passes a nil h and gets false.

Temporary home: when agent.Identify lands (#1312), it returns this mark as part of the Client (for example Client.Compaction), and this function becomes a thin wrapper or goes away.

Types

This section is empty.

Jump to

Keyboard shortcuts

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