File tree Expand file tree Collapse file tree
src/InvoicesBot.Console/Agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # InvoiceBot – Query Structured Data with Microsoft.Extensions.AI
1+ # InvoiceBot – AI Assistant built using Microsoft.Extensions.AI
22
33This is a simple .NET-based AI app that uses ** Microsoft.Extensions.AI** to a structured invoice dataset using ** tool/function calls** .
44
@@ -7,8 +7,8 @@ This is a simple .NET-based AI app that uses **Microsoft.Extensions.AI** to a st
77
88### Requirements
99
10- - .NET 8
11- - Azure OpenAI or OpenAI API Key
10+ - .NET 9
11+ - OpenAI API key(Also can use Llama, AzureOpenAi)
1212- Visual Studio or VS Code
1313
1414### Setup
@@ -19,7 +19,7 @@ This is a simple .NET-based AI app that uses **Microsoft.Extensions.AI** to a st
1919 "OpenAi" : {
2020 "Key" : " your-openai-key"
2121 }3 . Run the app:
22- ''' bash
22+ ``` bash
2323 dotnet run
2424
2525## Example Queries
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public interface IInvoiceTools
2828Notes:
2929This uses LINQ.Dynamic for dynamic filtering and grouping.
3030GPT 4x can generate reliable dynamic LINQ expressions compared to other models
31- You can also do this manually using expressions or reflection or custom logic.
31+ You may need do this manually using expressions, reflection, custom logic or via api calls
3232Or generate sql queries(careful) for filtering if your data is in a database.
3333Comment out some tools if you are using a smaller models to avoid token limits.
3434 */
You can’t perform that action at this time.
0 commit comments