ctxkeys

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ctxkeys provides shared context keys for cross-package value propagation. It exists as a lightweight, dependency-free package so that both adk and toolchain (and any future packages) can read/write the same context values without import cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentNameFromContext

func AgentNameFromContext(ctx context.Context) string

AgentNameFromContext extracts the agent name from ctx. It returns an empty string if no agent name is present.

func WithAgentName

func WithAgentName(ctx context.Context, name string) context.Context

WithAgentName returns a new context carrying the given agent name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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