Individual skill
crestapps-core-response-handlers
Skill for routing CrestApps.Core 2.0 chat messages through IChatResponseHandler implementations instead of always calling the AI. Covers the built-in AI handler (ChatResponseHandlerNames.AI), streaming and deferred results with ChatResponseHandlerResult, ChatResponseHandlerContext members, registering custom webhook or live-agent handlers, IChatResponseHandlerResolver selection by session or interaction handler name and chat mode, ResponseHandlerProfileSettings for profile-created sessions, the conversation-mode fallback to the AI handler, and how the AI handler sets AIInvocationScope before building the orchestration context. Use it when handing chats to a live agent, a webhook or an external platform, or when a custom handler is ignored.
src/CrestApps.AgentSkills/crestapps-core/crestapps-core-response-handlers/SKILL.md
Source commit d86d04f234b1b2bd8145368a2544490f9d557596
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Instructions only
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 13
- Repository last updated
- Oct 21, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai Repository topic
- ai-agents-framework Repository topic
- dotnet Repository topic
- mcp Repository topic
- mcp-server Repository topic
- orchardcore Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Read excerpt
# CrestApps.Core Response Handlers
## Implement Response Handlers
Implement `IChatResponseHandler` when a message should not always use the default AI orchestration path. A handler returns either `ChatResponseHandlerResult.Streaming(...)` with an `IAsyncEnumerable<ChatResponseUpdate>` or `ChatResponseHandlerResult.Deferred()` when a later callback, background task, or relay will deliver the response.
`ChatResponseHandlerContext` exposes `Prompt`, `ConnectionId`, `SessionId`, `ChatType`, `ConversationHistory`, `Services`, `Profile`, `ChatSession`, `Interaction`, `AssistantAppearance`, and `Properties`. `Profile` and `ChatSession` are populated only for `AIChatSession`; `Interaction` is populated only for `ChatInteraction`.
## Deferred Webhook Example
```csharp
using System.Net.Http.Json;
using CrestApps.Core.AI.ResponseHandling;