Skip to content

Commit 4218edf

Browse files
committed
Expand one letter argument in FormatFunctionCallContent
1 parent b4dc168 commit 4218edf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Sentry.Extensions.AI/SentryAISpanEnricher.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@ object FunctionResultToObject(IList<AIContent> toolContents)
189189

190190
private static string FormatFunctionCallContent(FunctionCallContent[] content)
191191
{
192-
return JsonSerializer.Serialize(content.Select(c =>
192+
return JsonSerializer.Serialize(content.Select(functionCallContent =>
193193
{
194194
string argumentsJson;
195195
try
196196
{
197-
argumentsJson = JsonSerializer.Serialize(c.Arguments);
197+
argumentsJson = JsonSerializer.Serialize(functionCallContent.Arguments);
198198
}
199199
catch
200200
{
@@ -203,7 +203,7 @@ private static string FormatFunctionCallContent(FunctionCallContent[] content)
203203

204204
return new
205205
{
206-
name = c.Name,
206+
name = functionCallContent.Name,
207207
type = "function_call",
208208
arguments = argumentsJson
209209
};

0 commit comments

Comments
 (0)