Skip to main content

A minimal, extensible agent library for Python. Five philosophies: minimalism, extensibility, explicitness, fragmentation, conciseness.

Project description

coreouto

A minimal, extensible agent library for Python.

Built on five philosophies: minimalism, extensibility, explicitness, fragmentation, conciseness.

The whole library reduces to one idea: an agent is called with a message, runs an internal loop, and returns its response when the model wraps its final answer in <finish>...</finish> tags. Everything else — providers, tools, presets, hooks, multi-agent — is an opt-in extension.

import os

import coreouto as co
from coreouto.providers.openai import OpenAIProvider

@co.register_tool("search")
def search(query: str) -> str:
    """Search the web for `query`."""
    return f"<results for {query}>"

co.register_provider("minimax", OpenAIProvider(
    api_key=os.environ["MINIMAX_API_KEY"],
    base_url="https://api.minimax.io/v1",
))

preset = co.register_agent_preset(
    "researcher", model="MiniMax-M3", provider="minimax",
    system_prompt="You are a research assistant.",
    tools=["search"],
)
response = co.Agent(preset.to_config()).call_sync("Find me recent news about fusion energy.")
print(response.content)

Install

pip install coreouto
# with providers
pip install coreouto[openai]
pip install coreouto[anthropic]
pip install coreouto[google]
pip install coreouto[all]

Documentation

See docs/ for the full documentation set:

License

Apache 2.0 — see LICENSE.

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

coreouto-0.3.3.tar.gz (74.1 kB view details)

Uploaded Source

Built Distribution

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

coreouto-0.3.3-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file coreouto-0.3.3.tar.gz.

File metadata

  • Download URL: coreouto-0.3.3.tar.gz
  • Upload date:
  • Size: 74.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for coreouto-0.3.3.tar.gz
Algorithm Hash digest
SHA256 7589a003e21cd798468a292a22dc8906b972d57e53db05c5bba3e68fdb9f72e5
MD5 4159c9992214e94de39f6a2c96215690
BLAKE2b-256 06afa759f223c2a6d0e3b2d067df883a6d0793bfe69aec15661564c741ca8b58

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreouto-0.3.3.tar.gz:

Publisher: publish.yml on llaa33219/coreouto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coreouto-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: coreouto-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for coreouto-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25147b4946c6ac68d137cd94695c6c26e1e90ed16f29e6c13b28052bda50a4e3
MD5 b380fba11878fb811da5694cfaac303b
BLAKE2b-256 0644f3107ca180463663a29628879b156da9f3eb2ee9704ddff90e4706032bd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreouto-0.3.3-py3-none-any.whl:

Publisher: publish.yml on llaa33219/coreouto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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