https://github.com/douglasware/antrunner
.NET tools for creating and using Open AI and Azure Open AI Assistants
https://github.com/douglasware/antrunner
Last synced: about 2 months ago
JSON representation
.NET tools for creating and using Open AI and Azure Open AI Assistants
- Host: GitHub
- URL: https://github.com/douglasware/antrunner
- Owner: douglasware
- License: mit
- Created: 2024-09-05T03:16:03.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-15T17:01:41.000Z (3 months ago)
- Last Synced: 2025-02-15T10:38:42.717Z (2 months ago)
- Language: Jupyter Notebook
- Size: 12.3 MB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- dotnet-ai-resources - AntRunner - A complete set of .NET tools for creating and using Open AI and Azure Open AI Assistants with support for vector stores, code interpreter files, and function calling with local .NET functions and REST APIs with auth. (Using Assistants/Agents / CosmosDB + AI)
README
# AntRunner
A full set of .NET tools for creating and using Open AI and Azure Open AI Assistants## Features
- Create and manage Open AI Assistants (ants) from files stored in a file system and in Azure Blob Storage
- Easy setup of file search with vector stores from files bundled with ant definitions
- Easy setup of code interpreter and code interpreter files bundled with ant definitions
- Download files from code interpreter outputs
- Define and call REST API endpoints automatically with auth headers and oauth tokens
- Define and call local .NET methods automatically as tool calls## AntRunner Projects and Tools
- AntRunnerLib - The core library for creating and running ants, published on nuget.org
- AntRunnerFunctions - Azure Functions for running ants including a REST API and Durable Functions
- AntRunnerPowershell - A PowerShell module for managing and running ants## Notebooks
[Get started with the sample notebooks](./Notebooks)## .NET API Docs
[API docs are here](https://www.elumenotion.com/api/AntRunnerLib.html)!## Example
```csharp
var assistantRunOptions = new AssistantRunOptions() {
AssistantName = "MsGraphUserProfile",
Instructions = "What is my name?",
OauthUserAccessToken = oAuthToken
};
var output = await AntRunnerLib.AssistantRunner.RunThread(assistantRunOptions, config);
Console.WriteLine(output.LastMessage)
``````text
Your name is Doug Ware.
```