Skip to main content

eolaswork

Official Python SDK for the EolasWork agentic platform.

Install

pip install eolaswork

Python 3.11+. Sync + async clients ship together.

Two ways to run agents

Use case Method What it does
Chat with file attachments + history client.tasks.send_message(task_id, ...) Creates a turn + run bound to an existing task; agent sees uploaded files + prior messages.
Fire-and-forget standalone agent client.runs.create(...) Independent run; no task / file context. Good for cron-style jobs.

The model used for each run is fixed by the chosen role or team's manifest (default_model). There is no per-call model override today; if your tenant has multiple models wired up, change the role's manifest to switch.

Quickstart: chat with attachments

from eolaswork import Client

client = Client(api_key="nxa_...")        # or set EOLASWORK_API_KEY

# 1. Discover what's available
me     = client.account.whoami()
roles  = client.roles.list()              # pick a role.slug for the run
models = client.models.list()             # each Model has .id (UUID), .display_name, .provider

# 2. Create the task (bound to an agent + first message in one call)
task = client.tasks.create(
    role="research-analyst",                # role.slug from client.roles.list()
    first_message="Build a board-ready summary from the Excel I'll upload.",
    subject="Q2 board prep",                # optional label
)

# 3. Attach files to the task (the agent sees them on next turns)
client.files.upload(task.id, "./Q2_sales.xlsx")

# 4. Send the follow-up turn that asks the agent to use the file
task = client.tasks.send_message(
    task.id,
    text="The Excel is uploaded - produce the board summary now.",
)

# 5. Wait for the latest run to finish (or stream events live)
final = client.runs.wait(task.last_run_id, timeout=300)
print(final.status, final.output)

# Streaming alternative:
for ev in client.runs.stream(task.last_run_id):
    print(ev.kind, ev.payload)

Quickstart: standalone run (no task / files)

run = client.runs.create(
    prompt="Summarise today's INGEST team Slack channel.",
    role="research-analyst",                       # role.slug
    webhook_url="https://my-app.example.com/eolaswork/hook",  # optional
)

# Three ways to handle completion:
final = client.runs.wait(run.id, timeout=300)               # blocks
# OR live SSE:
for ev in client.runs.stream(run.id): print(ev.kind, ev.payload)
# OR don't wait - your webhook receiver gets the HMAC-signed POST.

print(final.status, final.output)

Async

import asyncio
from eolaswork import AsyncClient

async def main():
    async with AsyncClient(api_key="nxa_...") as client:
        task = await client.tasks.create(
            role="research-analyst",
            first_message="Summarise the latest project status.",
        )
        final = await client.runs.wait(task.last_run_id, timeout=300)
        print(final.status, final.output)

asyncio.run(main())

Compaction (many runs on one task)

When you keep sending runs to the same task, the message history grows and eventually crowds the model's context window. compact() compresses the older turns into a dense recap (the same compression that fires automatically when the budget is exceeded), so later runs stay efficient. Call it periodically between runs on a long-lived task:

for batch in batches:
    task = client.tasks.send_message(task.id, text=batch)
    client.runs.wait(task.last_run_id, timeout=300)

res = client.tasks.compact(task.id)
# {"compacted": True, "tokens_before": ..., "tokens_after": ...}
# or {"compacted": False, "reason": "Nothing to compact yet"}

client.tasks.compactions(task.id)              # history of compactions
# client.tasks.compaction(task.id, compaction_id)  # one record (summary + tokens)

Webhook receiver

from eolaswork.webhooks import verify_signature

@app.post("/eolaswork/hook")
def hook(request):
    payload = verify_signature(
        raw_body=request.body,
        signature_header=request.headers["X-EolasWork-Signature"],
        secret=os.environ["EOLASWORK_WEBHOOK_SECRET"],
    )
    print(payload.run_id, payload.status, payload.output)
    return "", 204

Configuration

Env var Default Meaning
EOLASWORK_API_KEY required Bearer key (create at /settings/api-keys)
EOLASWORK_BASE_URL https://eolaswork.com Backend host (override for self-hosted / on-prem)
EOLASWORK_PROXY unset Explicit proxy URL (e.g. http://corp-proxy:8080)

Explicit constructor args win over env vars:

client = Client(api_key="...", base_url="https://eolaswork.your-co.com",
                timeout=120.0, max_retries=5)

Running behind a corporate or notebook-environment proxy

If your environment has HTTPS_PROXY / HTTP_PROXY set globally (common on Kaggle, Colab, corporate notebooks, VPN'd workstations) and the proxy blocks eolaswork.com with a 403 Forbidden, pass trust_env=False to bypass it for SDK calls only:

client = Client(api_key="nxa_...", trust_env=False)

Or point at a specific proxy:

client = Client(api_key="nxa_...", proxy="http://corp-proxy:8080")

Resource surface

Resource What it does
client.account whoami, instructions, preferences, artifacts
client.api_keys list / create / revoke programmatic keys
client.tasks conversations CRUD + send_message + compact / compactions
client.runs create / retrieve / list / cancel / wait / stream / approve / deny
client.files upload / list / download / delete / to_pdf
client.roles catalogue + file content (read-only)
client.teams catalogue + file content (read-only)
client.skills catalogue + file content (read-only)
client.models LLM model catalogue + providers
client.followups cross-conversation action items
client.memory per-user knowledge graph (entities, relations, observations)

Async variants share the exact same surface on AsyncClient -- every method is awaitable.

Memory (knowledge graph)

client.memory is a per-user knowledge graph - entities (each with free-form observations) and the directed relations between them - shared across web, desktop, and the API. It's the same graph the agent reads and writes during runs, so you can seed it, inspect it, or keep it in sync with your own systems.

from eolaswork import Client

ew = Client()  # reads EOLASWORK_API_KEY

ew.memory.create_entities([
    {"name": "Alice", "entityType": "person", "observations": ["prefers one-page briefs"]},
    {"name": "Acme", "entityType": "company", "observations": ["based in Dublin"]},
])
ew.memory.create_relations([
    {"from": "Alice", "to": "Acme", "relationType": "works_at"},
])
ew.memory.add_observations([
    {"entityName": "Acme", "contents": ["FY26 revenue target EUR 4m"]},
])

graph = ew.memory.read_graph()           # {"entities": [...], "relations": [...]}
hits = ew.memory.search("dublin")        # entities matching + relations among them
ew.memory.open(["Alice", "Acme"])        # specific entities by name

ew.memory.delete_entities(["Acme"])      # also drops its observations + relations

Shapes: entity {"name", "entityType", "observations": [...]}, relation {"from", "to", "relationType"}. All operations are scoped to the authenticated user. Narrative per-user notes (preferences, working style) live separately on client.account.get_instructions() / set_instructions().

License

MIT.

Release files for eolaswork 0.1.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eolaswork 0.1.12
File Size Uploaded
eolaswork-0.1.12.tar.gz 31.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eolaswork 0.1.12
File Interpreter ABI Platform
eolaswork-0.1.12-py3-none-any.whl Python 3 none any Details

Total release size: 69.5 kB

Release files / eolaswork-0.1.12.tar.gz

Download URL eolaswork-0.1.12.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
90ef4259a3fc8699deb8294b79c5c3fc04ec03c74dd2cf8d91670c1660c5dc4e
BLAKE2b-256 checksum
How to use checksums
e421d6402246265bb033776753922d1471e4476caf640163d563959181a13d48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release files / eolaswork-0.1.12-py3-none-any.whl

Download URL eolaswork-0.1.12-py3-none-any.whl
Size 37.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
651de6b235ab837589725225714790fa352a7a9f2ae2cdede371939d973c3a06
BLAKE2b-256 checksum
How to use checksums
65516cfa8527c16323cda1026125ee293994d74074cd8e871a4008f182977514
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page