Minimalist Python framework for AI agents logic-only coding with streaming, tool calls, and multi-LLM provider support
Project description
open-taranis
Python framework for AI agents logic-only coding with streaming, tool calls, and multi-LLM provider support.
Installation
pip install open-taranis --upgrade
Quick Start
import open_taranis as T
client = T.clients.openrouter("api_key")
messages = [
T.create_user_prompt("Tell me about yourself")
]
stream = T.clients.openrouter_request(
client=client,
messages=messages,
model="mistralai/mistral-7b-instruct:free",
)
print("assistant : ",end="")
for token, tool, tool_bool in T.handle_streaming(stream) :
if token :
print(token, end="")
To create a simple display using gradio as backend :
import open_taranis as T
import open_taranis.web_front as W
import gradio as gr
gr.ChatInterface(
fn=W.chat_fn_gradio(
client=T.clients.openrouter(API_KEY),
request=T.clients.openrouter_request,
model="mistralai/mistral-7b-instruct:free",
_system_prompt="You are an agent named **Taranis**"
).create_fn(),
title="web front"
).launch()
Documentation :
- Base of the docs (coding some things before the real docs)
Roadmap
- v0.0.1: start
- v0.0.x: Add and confirm other API providers (in the cloud, not locally)
- v0.1.x: Functionality verifications in examples
- > v0.2.0: Add features for logic-only coding approach
- v0.6.x: Add llama.cpp as backend in addition to APIs
- v0.7.x: Add reverse proxy + server to create a dedicated full relay/backend (like OpenRouter), framework usable as server and client
- v0.8.x: Add PyTorch as backend with
transformersto deploy a remote server - v0.9.x: Total reduction of dependencies for built-in functions (unless counter-optimizations)
- v1.0.0: First complete version in Python without dependencies
Changelog
- v0.0.4 : Add xai and groq provider
- v0.0.6 : Add huggingface provider and args for clients.veniceai_request
- v0.1.0 : Start the docs, add update-checker and preparing for the continuation of the project...
- v0.1.1 : Code to deploy a frontend with gradio added (no complex logic at the moment, ex: tool_calls)
- v0.1.2 : Fixed a display bug in the web_front and experimentally added ollama as a backend
- v0.1.3 : Fixed the memory reset in the web_front and remove ollama module for openai front (work 100 times better)
- v0.1.4 : Fixed
web_frontfor native use on huggingface, as well ashandle_streamingwhich had tool retrieval issues
Advanced Examples
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
open_taranis-0.1.4.tar.gz
(20.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file open_taranis-0.1.4.tar.gz.
File metadata
- Download URL: open_taranis-0.1.4.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d13dacbf8ced74f6f54697cbef54e5159a0d58c9df434f2cd39c4edffbafac44
|
|
| MD5 |
24952413ad165b3309650d6f92b2ce80
|
|
| BLAKE2b-256 |
6b972b01d773df812afc2ef93202fa1996d14c49e6b12b1cc95dfa489a679b93
|
File details
Details for the file open_taranis-0.1.4-py3-none-any.whl.
File metadata
- Download URL: open_taranis-0.1.4-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
077077554baaf1402c3840b8367af188c8bba2e3a4a8671907be2d06f4e5aa56
|
|
| MD5 |
c48cb2691eea38b783486f31f77d253d
|
|
| BLAKE2b-256 |
8fcfe3fb62efe2d355dc2f7449dbfac6b270acceb26b0f5d5d07ff32b1e65861
|