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:
- Philosophy — the five principles
- Quickstart
- Agent
- Providers
- Tools
- Presets
- Hooks
- Multi-agent
License
Apache 2.0 — see LICENSE.
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
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 coreouto-0.3.4.tar.gz.
File metadata
- Download URL: coreouto-0.3.4.tar.gz
- Upload date:
- Size: 74.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12196b17faa17a90a7b805267fec4fbcb3293c4ec3b9320d47d71af95c249830
|
|
| MD5 |
12ac836c9a508157d4428b4db80bf945
|
|
| BLAKE2b-256 |
703705ceb2f8991fcf4169ff81151639b5662e3b5ce08c9176eafee22b455be8
|
Provenance
The following attestation bundles were made for coreouto-0.3.4.tar.gz:
Publisher:
publish.yml on llaa33219/coreouto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreouto-0.3.4.tar.gz -
Subject digest:
12196b17faa17a90a7b805267fec4fbcb3293c4ec3b9320d47d71af95c249830 - Sigstore transparency entry: 1807791631
- Sigstore integration time:
-
Permalink:
llaa33219/coreouto@343abed825523dbee7e564cf5f500aff90f72362 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/llaa33219
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@343abed825523dbee7e564cf5f500aff90f72362 -
Trigger Event:
push
-
Statement type:
File details
Details for the file coreouto-0.3.4-py3-none-any.whl.
File metadata
- Download URL: coreouto-0.3.4-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
551e6f7cc99c269596b843e64a3a3126ef2f671ab3a40019c67917d2df69c0d6
|
|
| MD5 |
00699bb046e2d4f58afb824a746ce49b
|
|
| BLAKE2b-256 |
e30e8267fd4f1f7bf38cb2dac33a7a2b31810391c28f9b4985a9edac42c7e4a0
|
Provenance
The following attestation bundles were made for coreouto-0.3.4-py3-none-any.whl:
Publisher:
publish.yml on llaa33219/coreouto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreouto-0.3.4-py3-none-any.whl -
Subject digest:
551e6f7cc99c269596b843e64a3a3126ef2f671ab3a40019c67917d2df69c0d6 - Sigstore transparency entry: 1807791668
- Sigstore integration time:
-
Permalink:
llaa33219/coreouto@343abed825523dbee7e564cf5f500aff90f72362 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/llaa33219
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@343abed825523dbee7e564cf5f500aff90f72362 -
Trigger Event:
push
-
Statement type: