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()
Use the commands :
taranis help: in the name...taranis update: upgrade the frameworktaranis open: open the TUI
The TUI :
/helpto start
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
- The rest will follow soon.
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 - v0.1.7 : Added a TUI and commands, detection of env variables (API keys) and tools in the framework
Advanced Examples
- tools call in a JSON database
- tools call in a HR JSON database in multi-rounds
- simple search agent with Brave API
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.7.tar.gz
(65.6 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.7.tar.gz.
File metadata
- Download URL: open_taranis-0.1.7.tar.gz
- Upload date:
- Size: 65.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
816293c6c8b3d2770961d87e55efd4d45a26bc2f45018547a1923c3c8fb3e094
|
|
| MD5 |
ac5963c7232699c27a3fbe2d256df1f6
|
|
| BLAKE2b-256 |
63bff13146f3d146be9ffe1c4c0e84099dd491242091643afa973968e0e24c0d
|
File details
Details for the file open_taranis-0.1.7-py3-none-any.whl.
File metadata
- Download URL: open_taranis-0.1.7-py3-none-any.whl
- Upload date:
- Size: 22.2 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 |
9e7ec0874b5932a476f90c649a408e994a6c80fea6b7599b6599e51aefff9ae0
|
|
| MD5 |
39a44978f11ca05ae6977a0576e6d0ec
|
|
| BLAKE2b-256 |
ebaea239b541e52e4f26698721ab649257ac136a25e284ec3e5349fd9e888145
|