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.2.tar.gz (46.2 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.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: everruns_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 46.2 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.2.tar.gz
Algorithm Hash digest
SHA256 c6f8b599a70016bf8d3458ddae1b817512fdc0f24ad7d0fdcf086db960abd99d
MD5 3ad4fb7df7aafcdf14a961e7574707b3
BLAKE2b-256 f1712c6747b488abf13b169625c167467b67af42cb6f5337c10b9dc61f5e46d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for everruns_sdk-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: everruns_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e2388913aec8dfc6bb008b7d45ea94e1e27e4510d3467b6c101d8ec513b38a62
MD5 932993c932625fe5e7add85117b248bd
BLAKE2b-256 1c3d398a22c6a87c24ab96a45be1fed93dfc62cf6072c594c01227aa38dd270a

See more details on using hashes here.

Provenance

The following attestation bundles were made for everruns_sdk-0.1.2-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