agentctx

package
v0.30.2 Latest Latest
Warning

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

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

Documentation

Overview

Package agentctx defines context keys for adapter routing information that flows through the agent pipeline. Both agent and configmcp import this package to set and extract routing context without coupling to each other.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapter

func Adapter(ctx context.Context) string

Adapter extracts the adapter name, or "" if unset.

func ConversationID

func ConversationID(ctx context.Context) string

ConversationID extracts the conversation ID, or "" if unset.

func ExternalID

func ExternalID(ctx context.Context) string

ExternalID extracts the external message ID, or "" if unset.

func WithAdapter

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

WithAdapter returns a context carrying the adapter name (e.g. "telegram", "ws").

func WithConversationID

func WithConversationID(ctx context.Context, id string) context.Context

WithConversationID returns a context carrying the conversation ID.

func WithExternalID

func WithExternalID(ctx context.Context, id string) context.Context

WithExternalID returns a context carrying the platform-specific message ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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