fix: throw exception when accessing result props incorrectly
This commit is contained in:
@@ -301,7 +301,7 @@ public class ToolTests : SerializationTest
|
||||
tool.DisplayName.Should().Be("Name");
|
||||
tool.Description.Should().Be("Description");
|
||||
tool.Function.Method.Name.Should().Be(nameof(ProperTool.GetWeather));
|
||||
tool.Function.Instance.Should().BeNull();
|
||||
tool.Function.Instance.Should().BeOfType<ProperTool>();
|
||||
tool.InputSchema.Should().BeEquivalentTo(
|
||||
expectedSchema,
|
||||
t => t.IgnoringCyclicReferences()
|
||||
|
||||
Reference in New Issue
Block a user