Mythetech.Agents.Components
0.3.0
dotnet add package Mythetech.Agents.Components --version 0.3.0
NuGet\Install-Package Mythetech.Agents.Components -Version 0.3.0
<PackageReference Include="Mythetech.Agents.Components" Version="0.3.0" />
<PackageVersion Include="Mythetech.Agents.Components" Version="0.3.0" />
<PackageReference Include="Mythetech.Agents.Components" />
paket add Mythetech.Agents.Components --version 0.3.0
#r "nuget: Mythetech.Agents.Components, 0.3.0"
#:package Mythetech.Agents.Components@0.3.0
#addin nuget:?package=Mythetech.Agents.Components&version=0.3.0
#tool nuget:?package=Mythetech.Agents.Components&version=0.3.0
Mythetech.Agents
Shared agent framework for Mythetech applications.
Mythetech.Agents
The normalized conversation model and the Claude Code driver that produces it. An IClaudeCodeConversation owns one CLI process, maps its stream into immutable AgentEntry records built from Microsoft.Extensions.AI content types, evaluates tool approvals through the host's IToolApprovalEvaluator, and reports through a typed event channel the host consumes in its own loop.
services.AddMythetechAgents();
var conversation = await factory.StartAsync(new ClaudeCodeConversationOptions("/path/to/repo", ClaudePermissionMode.AcceptEdits)
.WithFrameworkMcpServer(mcpState, "myapp"));
await conversation.SendAsync("Run the tests.");
await foreach (var evt in conversation.Events.ReadAllAsync())
{
// EntryAdded, ApprovalRequested, StatusChanged, ...
}
Mythetech.Agents.Components
Presentational Blazor components over AgentEntry: AgentTranscript, AgentEntryView, AgentApprovalCard, AgentQuestionCard, AgentInputBar, and ClaudeCodeConversationToolbar for the Claude Code pickers. AgentConversationView composes them from plain data so a host can feed it from its own runtime, or from a conversation observed with AgentConversationObserver.
Transcript markdown rewrites external links to a same-origin href, so mount AgentLinkInterceptor once, typically in the host's main layout, to open them through ILinkOpenService instead of navigating the WebView away.
@* In the host's main layout, mounted once *@
<AgentLinkInterceptor />
<AgentConversationView Entries="@conversation.Entries"
PendingApproval="@conversation.PendingApproval"
Status="@conversation.Status"
OnSend="@(text => conversation.SendAsync(text))"
OnDecision="@(answer => conversation.RespondToApprovalAsync(answer.Approval.RequestId, answer.Decision))"
OnInterrupt="@(() => conversation.InterruptAsync())">
<Toolbar>
<ClaudeCodeConversationToolbar PermissionMode="@conversation.PermissionMode" PermissionModeChanged="@ChangeModeAsync"
Model="@conversation.Model" ModelChanged="@ChangeModelAsync" Usage="@conversation.Usage" />
</Toolbar>
</AgentConversationView>
Mythetech.Agents.Protocols
Wire formats and transport for agent providers. The ClaudeCode namespace covers the Claude Code CLI in stream-json mode: message types, the control channel used for permission prompts, a channel-based process transport, a one-shot runner, and readers for the CLI's transcript logs and session index.
services.AddClaudeCodeProtocol();
var process = await factory.StartAsync(new ClaudeCliOptions("/path/to/repo", ClaudePermissionMode.AcceptEdits));
await process.SendUserMessageAsync("Run the tests.");
await foreach (var message in process.Messages.ReadAllAsync())
{
// ClaudeAssistantStreamMessage, ClaudeControlRequestMessage, ClaudeResultStreamMessage, ...
}
The host registers Mythetech.Framework's IShellExecutor; the package does not.
Mythetech.Agents.Protocols.Testing
FakeClaudeCliProcess, FakeClaudeCliProcessFactory and FakeClaudeCliRunner for tests that drive a consuming app's runtime without a real CLI.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Markdig (>= 1.3.2)
- Mythetech.Agents (>= 0.3.0)
- Mythetech.Framework (>= 0.19.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|