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.3.tar.gz (50.4 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.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: everruns_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 50.4 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.3.tar.gz
Algorithm Hash digest
SHA256 3ead9f1c7fb4b94784a7b38a1dc432dc4e3f584ba9d31efcc390072f4428d03e
MD5 861dc86695e169856b7cbf68408637d1
BLAKE2b-256 558823e600d2e27b50ae0480ffe3d6b04cf8b9f4df0dbd96137a79fae3b66a79

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: everruns_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cc73444671d57e034ba563bbcddf4b3df09a9383c083283020e2e7cca27459cb
MD5 1f1e8260c2aa7239a36a30943e8d4ff2
BLAKE2b-256 a5e289dd90c3720fe0fc9f77f8de56864ea6ca7819ab360dab068b99e185fb24

See more details on using hashes here.

Provenance

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