session

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentIDFromContext

func AgentIDFromContext(ctx context.Context) string

AgentIDFromContext extracts the agent ID from the context Returns empty string if not found Supports both typed key (agentIDKey{}) and string key ("agent_id") for backward compatibility

func SessionIDFromContext

func SessionIDFromContext(ctx context.Context) string

SessionIDFromContext extracts the session ID from the context Returns empty string if not found

func WithAgentID

func WithAgentID(ctx context.Context, agentID string) context.Context

WithAgentID injects an agent ID into the context

func WithSessionID

func WithSessionID(ctx context.Context, sessionID string) context.Context

WithSessionID injects a session ID into the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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