This commit is contained in:
2026-11-06 19:14:02 +03:30
parent 5307fe4d2f
commit 16fb715926
4 changed files with 332 additions and 115 deletions
+22
View File
@@ -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;
// }
}
}