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.0.1.tar.gz (177.3 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.0.1-py3-none-any.whl (259.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maestro_core-1.0.1.tar.gz
  • Upload date:
  • Size: 177.3 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.0.1.tar.gz
Algorithm Hash digest
SHA256 30f88fd346a63dfad65e9befd5ba97805b9bcc4b883b12de908445e4a5c49532
MD5 b9a9f225ceafc25544258c4b0d725dca
BLAKE2b-256 ed1a5ba924e733dc1918443320bc97f7e213ea3d37a957615191f9083be5bf81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maestro_core-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 259.0 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfec0d079c8dd42544dd916e8dcb38eed63364de845273a15cd6928016032255
MD5 17de83961fb84e44cfa06909da6d5512
BLAKE2b-256 476c13502b85ee8f2012d930d7c055fc3aa5374377a1d4a09e2479818e6d16a0

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