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
- func WithSkillContext(ctx context.Context, s *SkillSummary) context.Context
- type SkillSummary
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.
func WithExternalID ¶
WithExternalID returns a context carrying the platform-specific message ID.
func WithSkillContext ¶ added in v0.31.8
func WithSkillContext(ctx context.Context, s *SkillSummary) context.Context
WithSkillContext returns a context carrying skill metadata for supervisor review.
Types ¶
type SkillSummary ¶ added in v0.31.8
type SkillSummary struct {
Name string
Description string
Body string // skill body (markdown); truncated at render time
IsScheduled bool
ScheduleName string
}
SkillSummary carries lightweight metadata about the skill driving the current session. Used by the supervisor to understand *why* a tool call is being made, especially for scheduled skill invocations.
func SkillContext ¶ added in v0.31.8
func SkillContext(ctx context.Context) *SkillSummary
SkillContext extracts the skill summary, or nil if unset.