Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Ngentic.slnx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Solution>
<Folder Name="/samples/">
<Project Path="samples/Ngentic.Samples/Ngentic.Samples.csproj" />
</Folder>
<Folder Name="/src/">
<Project Path="src/Ngentic.Core/Ngentic.Core.csproj" />
<Project Path="src/Ngentic.NUnit/Ngentic.NUnit.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="tests/Ngentic.Tests/Ngentic.Tests.csproj" />
</Folder>
</Solution>
46 changes: 0 additions & 46 deletions samples/Ngentic.Samples/FakeChatClient.cs

This file was deleted.

49 changes: 0 additions & 49 deletions samples/Ngentic.Samples/SampleTest.cs

This file was deleted.

14 changes: 14 additions & 0 deletions src/Ngentic.Core/AgentRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,18 @@ public sealed class AgentRun
public required TimeSpan Duration { get; init; }
public required int Turns { get; init; }
public required bool HitTurnLimit { get; init; }

/// <summary>
/// Total cost reported by the agent driver, in USD. Populated by the
/// Claude CLI driver from the final stream-json `result` event; null
/// when the driver does not surface cost.
/// </summary>
public double? CostUsd { get; init; }

/// <summary>
/// Free-form payload for driver-specific information that does not earn
/// a top-level field. Populated by the Claude CLI driver with stderr,
/// exit code, and the raw stream-json transcript for debugging.
/// </summary>
public IReadOnlyDictionary<string, object?>? Metadata { get; init; }
}
125 changes: 0 additions & 125 deletions src/Ngentic.Core/AgentRunner.cs

This file was deleted.

20 changes: 20 additions & 0 deletions src/Ngentic.Core/Args.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace Ngentic;

/// <summary>
/// Lightweight builder for the <c>Dictionary&lt;string, object?&gt;</c> argument
/// bag that MCP client APIs typically take. Lets tests write
/// <c>Args.Of(("slot", slotA), ("script", "..."))</c> instead of a full
/// dictionary initializer.
/// </summary>
public static class Args
{
public static Dictionary<string, object?> Of(params (string name, object? value)[] pairs)
{
Dictionary<string, object?> result = new(pairs.Length);
foreach ((string name, object? value) in pairs)
{
result[name] = value;
}
return result;
}
}
3 changes: 0 additions & 3 deletions src/Ngentic.Core/Class1.cs

This file was deleted.

Loading
Loading