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
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 everruns_sdk-0.1.0.tar.gz.
File metadata
- Download URL: everruns_sdk-0.1.0.tar.gz
- Upload date:
- Size: 43.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d88cdb9303fa9cd0a326d3894b0501c12388e10ea34ebf13b17bf2508728996
|
|
| MD5 |
e434f0480ca9bc8f93f8c8610ac18aa8
|
|
| BLAKE2b-256 |
cd9af0c3859d86b15da702acf980849d426cfde7bece2c4103c8770faeea3e21
|
Provenance
The following attestation bundles were made for everruns_sdk-0.1.0.tar.gz:
Publisher:
publish.yml on everruns/sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
everruns_sdk-0.1.0.tar.gz -
Subject digest:
5d88cdb9303fa9cd0a326d3894b0501c12388e10ea34ebf13b17bf2508728996 - Sigstore transparency entry: 870095887
- Sigstore integration time:
-
Permalink:
everruns/sdk@0eead2b1088200590e7d0afeeadaaf6040330741 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/everruns
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0eead2b1088200590e7d0afeeadaaf6040330741 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file everruns_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: everruns_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
868d859c2e6917dd2b336d2f34c0a9b175c9b2982c66bedd31fccb1dda83b4dc
|
|
| MD5 |
5e014b1d2a1cf98592f83ecffa7d01ae
|
|
| BLAKE2b-256 |
6e2b1f188f9cc8641af526797ff80ba93fc2766a819364118bf6156ae9bc8b2f
|
Provenance
The following attestation bundles were made for everruns_sdk-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on everruns/sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
everruns_sdk-0.1.0-py3-none-any.whl -
Subject digest:
868d859c2e6917dd2b336d2f34c0a9b175c9b2982c66bedd31fccb1dda83b4dc - Sigstore transparency entry: 870095902
- Sigstore integration time:
-
Permalink:
everruns/sdk@0eead2b1088200590e7d0afeeadaaf6040330741 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/everruns
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0eead2b1088200590e7d0afeeadaaf6040330741 -
Trigger Event:
workflow_dispatch
-
Statement type: