19 references to ToolResultContent
Microsoft.Extensions.AI.Abstractions (6)
Contents\CodeInterpreterToolResultContent.cs (1)
18: base(callId)
Contents\FunctionResultContent.cs (1)
28: base(callId)
Contents\ImageGenerationToolResultContent.cs (1)
22: base(callId)
Contents\McpServerToolResultContent.cs (1)
26: base(Throw.IfNullOrWhitespace(callId))
Contents\WebSearchToolResultContent.cs (1)
23: base(callId)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\ToolResultContentTests.cs (3)
15ToolResultContent c = new("callId1"); 25Assert.Throws<ArgumentNullException>("callId", () => new ToolResultContent(null!)); 31ToolResultContent c = new("callId1");
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ToolResultContent.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.OpenAI (5)
OpenAIResponsesChatClient.cs (5)
293message.Contents.Add(new ToolResultContent(outputItem.Id) { RawRepresentation = outputItem }); 301message.Contents.Add(new ToolResultContent(computerCallOutput.CallId) { RawRepresentation = computerCallOutput }); 309message.Contents.Add(new ToolResultContent(patchCallOutput.CallId) { RawRepresentation = patchCallOutput }); 621toolCallUpdate.Contents.Add(new ToolResultContent(outputItemDoneUpdate.Item.Id) { RawRepresentation = outputItemDoneUpdate.Item }); 630yield return CreateUpdate(new ToolResultContent(computerCallOutput.CallId) { RawRepresentation = computerCallOutput });
Microsoft.Extensions.AI.Stabilization.Tests (1)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.ToolResultContent.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ToolResultContent((string)args[0]),