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
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ private static AIFunctionArguments ConvertToFunctionArguments(JsonElement? argum
if (arguments.Value.ValueKind != JsonValueKind.Object)
{
throw new InvalidOperationException(
$"Inline skill scripts expect arguments as a JSON object but received a JSON element of kind '{arguments.Value.ValueKind}'.");
$"Inline skill scripts expect arguments as a JSON object but received a JSON element of kind '{arguments.Value.ValueKind}'. " +
"Configure a custom argument marshaler on the skill to handle other argument formats.");
}

var dict = new Dictionary<string, object?>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public async Task DefaultMarshaler_StringArguments_ThrowsAsync()
var ex = await Assert.ThrowsAsync<InvalidOperationException>(
() => script.RunAsync(skill, element, null, CancellationToken.None));
Assert.Contains("String", ex.Message);
Assert.Contains("custom argument marshaler", ex.Message);
}

[Fact]
Expand Down
Loading