Skip to main content

Class Hierarchy

Common Features

All context classes provide:

Dependency Injection

Scope Access

Logging

Authentication

Execution Tracking

Error Handling

Context-Specific Features

ToolContext

Notifications, progress, elicitation, platform detection

ResourceContext

URI handling, parameter extraction

PromptContext

Argument handling, prompt building

AgentContext

LLM completion, tool execution, agent loop

SkillContext

Instruction loading, skill building

JobContext

Logging, progress, retry tracking

ExecutionContextBase

Base class with shared functionality

Context Extensions

Plugins can extend all context classes with custom properties:

Request Context

All contexts can access the underlying request context:

HTTP Fetch

All contexts provide context-aware fetch:

Configuration Access

When ConfigPlugin is installed:

Best Practices

Use Type Parameters

Handle Errors Gracefully

Use Stage Markers

Leverage Platform Detection