Skip to main content

Python SDK for Everruns API

Project description

Everruns SDK for Python

Python SDK for the Everruns API.

Installation

pip install everruns-sdk

Quick Start

import asyncio
from everruns_sdk import Everruns

async def main():
    # Uses EVERRUNS_API_KEY environment variable
    client = Everruns()
    
    # Create an agent
    agent = await client.agents.create(
        name="Assistant",
        system_prompt="You are a helpful assistant.",
    )
    
    # Create a session
    session = await client.sessions.create(agent_id=agent.id)
    
    # Send a message
    await client.messages.create(session.id, "Hello!")
    
    # Stream events
    async for event in client.events.stream(session.id):
        if event.type == "output.message.completed":
            print(event.data)
            break
    
    await client.close()

asyncio.run(main())

License

MIT

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

everruns_sdk-0.1.1.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

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

everruns_sdk-0.1.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file everruns_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: everruns_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 45.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for everruns_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 93281dbca04d6fcfe73e6e857500ca294e18b1d190fac167e3eb062ff85998d8
MD5 e1d9cbf6602d4814541e1b811c6e0042
BLAKE2b-256 b35f370c9fbaa4b8eccc22c0ade61340a3bff3065501c30f874d26d6d4b645bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for everruns_sdk-0.1.1.tar.gz:

Publisher: publish.yml on everruns/sdk

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

File details

Details for the file everruns_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: everruns_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for everruns_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 751f399b7dbba0c52b780f19f9bbd69714b31a57d4ebcd52a1797aad43432eb0
MD5 d4c3bfb788ff18b857219899cae003bb
BLAKE2b-256 643ecf9a0fc653498016af003949e1d3b77e3b581dbb7347facb740b128223be

See more details on using hashes here.

Provenance

The following attestation bundles were made for everruns_sdk-0.1.1-py3-none-any.whl:

Publisher: publish.yml on everruns/sdk

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