Skip to content

frostaura/fa.intelligence.legion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fa.intelligence.legion

Picture of Legion

Description

FrostAura's Legion is a dotnet-based (C#) state-of-the-art multi-agent LLM framework.

Status

Project Status Platform
FrostAura Legion Containerization Containerization Workflow GitHub Actions
FrostAura Legion Docker Docker Badge Docker Hub

Getting Started

Requirements for Development

Run Legion via Docker

For this option, Docker should be installed and running on the host computer then, in the root of the project, open a terminal and start Legion using Docker Compose via a single command.

docker-compose up

Ensure that you set the required variables in the .env file, in order for the docker-compose to work.

Run Legion Programatically

Currently Legion is configured to leverage a locally-running Ollama server.

TODO: Add config support and document an example.

TODO: Add status updating support and documentation.

TODO: Add support and documentation for configuration of a custom Ollama endpoint as well as typical OpenAI support.

/*
 * Nuget Dependencies:
 * -------------------
 * dotnet add package FrostAura.AI.Legion
 * 
 * Configuration:
 * --------------
 * appsettings.json or via environment variables (.env file).
 */
using FrostAura.AI.Legion.Extensions;
using Microsoft.Extensions.DependencyInjection;

/*
 * Create dependency injection service collection (standard practice).
 *
 * NOTE: If you have an already-bootstrapped dotnet project, ensure you call AddLegion() to your existing service collection.
 */
var legion = new ServiceCollection()
	.AddLegion()
	.BuildServiceProvider()
	.GetLegionInstance();

Console.Write("Your Query: ");

// This could be Console.ReadLine() for example in the event that we need user input.
var query = "What is the meaning of life?";
var response = await legion.ChatAsync(query, CancellationToken.None);

Console.WriteLine(response);
Console.ReadLine();

Documentation

Content Description
Repo Structure The structuring of the repo.
Design The software architecture diagram(s) and design(s).
Workflow The software automated software pipeline(s).
Support & Contribute Basic queries, contributing to the repo and supporting the team(s) working on this open-source repo.

About

The autonomous general purpose, multi-modal agent.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published