last ...
This commit is contained in:
@@ -325,5 +325,27 @@ namespace xAiApi.Extensions
|
||||
return result;
|
||||
}
|
||||
|
||||
// public static IList<AITool> ToAITools(this IList<XAiMcpToolDefinition> source)
|
||||
// {
|
||||
// //
|
||||
// var result = new List<AITool>();
|
||||
|
||||
// //
|
||||
// foreach (var tool in source)
|
||||
// {
|
||||
// //
|
||||
// var declaration = AIFunctionFactory.CreateDeclaration(
|
||||
// name: tool.Name,
|
||||
// jsonSchema: tool.InputSchema,
|
||||
// description: tool.Description
|
||||
// );
|
||||
|
||||
// //
|
||||
// result.Add(declaration);
|
||||
// }
|
||||
|
||||
// //
|
||||
// return result;
|
||||
// }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user