Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLittleCloud committed Nov 1, 2024
1 parent 77b737f commit cd6eaf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static async Task ToolCallWithMEAITools()
AIFunctionFactory.Create(instance.UpperCase),
AIFunctionFactory.Create(instance.ConcatString),
AIFunctionFactory.Create(instance.CalculateTax),
];
];

var toolCallMiddleware = new FunctionCallMiddleware(tools);

Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/AutoGen.Tests/Function/FunctionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task CreateGetWeatherFunctionFromAIFunctionFactoryAsync()
GetWeatherStatic,
GetWeatherAsync,
GetWeatherAsyncStatic,
];
];
var functionContracts = availableDelegates.Select(function => (FunctionContract)AIFunctionFactory.Create(function).Metadata).ToList();

Expand Down
2 changes: 1 addition & 1 deletion dotnet/website/articles/Create-type-safe-function-call.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Type-safe function call
## Create type-safe function call using AutoGen.SourceGenerator

`AutoGen` provides a source generator to easness the trouble of manually craft function definition and function call wrapper from a function. To use this feature, simply add the `AutoGen.SourceGenerator` package to your project and decorate your function with @AutoGen.Core.FunctionAttribute.

Expand Down

0 comments on commit cd6eaf4

Please sign in to comment.