Skip to main content

Core engine for Maestro AI agent — providers, trust layer, tools, conversation engine

Project description

maestro-core

Core engine for Maestro AI agent. Multi-provider, privacy-first.

Features

  • 4 LLM Providers: Anthropic (Claude), OpenAI (GPT), Google (Gemini), Ollama (local)
  • Trust Layer: Automatic anonymization of sensitive data (NIR, SIRET, IBAN, emails, names, API keys)
  • Provider Router: Auto-route to local/cloud based on data sensitivity
  • Conversation Engine: Turn loop with tool calling
  • Tool Framework: Base classes + 6 built-in tools (bash, file_read, file_write, file_edit, grep, glob)

Installation

pip install maestro-core

Usage

from maestro_core.engine import ConversationEngine
from maestro_core.provider_router import ProviderRouter, RoutingMode
from maestro_core.tools import ToolRegistry
from maestro_core.tools.bash import BashTool
from maestro_core.config import MaestroConfig
from maestro_core.trust.anonymizer import TrustMode

# Setup
config = MaestroConfig()
router = ProviderRouter(config, RoutingMode.AUTO, TrustMode.STANDARD)

tools = ToolRegistry()
tools.register(BashTool())

engine = ConversationEngine(router=router, tools=tools)

# Chat
result = await engine.run_turn("List Python files", model="claude-sonnet-4")
print(result.response_text)

Trust Layer

from maestro_core.trust.anonymizer import Anonymizer, TrustMode

anon = Anonymizer(TrustMode.STANDARD)
safe = anon.anonymize_text("NIR 267041305561777 SIRET 41021468800013")
# → "NIR [NIR_1] SIRET [SIRET_1]"

restored = anon.deanonymize_text(safe)
# → "NIR 267041305561777 SIRET 41021468800013"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maestro_core-1.2.2.tar.gz (188.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maestro_core-1.2.2-py3-none-any.whl (271.6 kB view details)

Uploaded Python 3

File details

Details for the file maestro_core-1.2.2.tar.gz.

File metadata

  • Download URL: maestro_core-1.2.2.tar.gz
  • Upload date:
  • Size: 188.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for maestro_core-1.2.2.tar.gz
Algorithm Hash digest
SHA256 1e7018bbd917c4a67b61af642816a97c5f593f6e632556d51800e4eebeb88363
MD5 3b4684659ca20ab07e5c29d1d8c820a6
BLAKE2b-256 ad6fbe47781542240f99784b69cf04887a0e6df182f138b3725b969c4d8866f7

See more details on using hashes here.

File details

Details for the file maestro_core-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: maestro_core-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 271.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for maestro_core-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 50c6489d23a11cf4319567426e75c6ea7b5d8962a418bf867d7b3c129ce02057
MD5 7ab27d493502bf0947db0506236b965c
BLAKE2b-256 048f91feb8d1460057a707d0a05b4ad1e907a3f1a4bb18ebf2851dd0a4dc2e90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page