Skip to main content

coreouto

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 calls the finish tool — the content argument of the finish call becomes the final answer. If the model's turn ends without a finish call (the model "thinks it's done" but didn't say so explicitly), the loop injects a confirmation user message and re-prompts; the model's next turn either calls finish (terminate) or calls more tools (continue). Unrecoverable provider terminations (token cap, refusal, content filter, server-side failure) still end the loop without finish. To output text without ending the loop (e.g. share progress before calling more tools), the model calls the continue_loop tool. 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.

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.7.4.tar.gz (95.5 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.7.4-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for coreouto-0.7.4.tar.gz
Algorithm Hash digest
SHA256 3b557305de7266d20bbf77f1af6b011af1c17b954e1c7bcfd68ef7f7893bdd26
MD5 148f15aab004c6d07b661c5789c41e67
BLAKE2b-256 e7216ea03ef05d8972fba5fba17ac1b7fdf395e7ef7ac909d9aacb787bea920b

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreouto-0.7.4.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.7.4-py3-none-any.whl.

File metadata

  • Download URL: coreouto-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 35.7 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.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cbba210eb058c83e5f45c623e50361c5502c7101fcdb73863933820aa58ac0b6
MD5 ab1f654e49fa04cfcb008c90412b5df9
BLAKE2b-256 64ec0cf0fa4ac1981049e97092805da152aaa1783dd5a62dd0dc4999829417f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreouto-0.7.4-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