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 ¶
- func Adapter(ctx context.Context) string
- func ConversationID(ctx context.Context) string
- func ExternalID(ctx context.Context) string
- func WithAdapter(ctx context.Context, name string) context.Context
- func WithConversationID(ctx context.Context, id string) context.Context
- func WithExternalID(ctx context.Context, id string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConversationID ¶
ConversationID extracts the conversation ID, or "" if unset.
func ExternalID ¶
ExternalID extracts the external message ID, or "" if unset.
func WithAdapter ¶
WithAdapter returns a context carrying the adapter name (e.g. "telegram", "ws").
func WithConversationID ¶
WithConversationID returns a context carrying the conversation ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.