Does the C# SDK generate an output schema for return types when using AIFunctionFactory.Create()? #4737
-
|
I'm using the Microsoft Agent Framework (C# SDK) and creating function tools via AIFunctionFactory.Create. Right now, we are returning all our function return values manually converted into JSON strings, and I wonder if it's worth the effort to switch to returning the actual types that our backend returns. Something like: [Description("Description of the result object in general")]
public class TransactionResult
{
[Description("Description of individual properties")]
public string TransactionCode { get; set; }
}So my questions are specifically:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.

Yes, e.g. this:
outputs this:
{"description":"Description of the result object in general","type":"object","properties":{"transactionCode":{"description":"Description of individual properties","type":"string"}}}