No project description provided
Project description
Operagents
Installation
Install the latest version with:
pip install operagents
# or use poetry
poetry add operagents
# or use pdm
pdm add operagents
# or use uv
uv pip install operagents
Usage
Writing a configuration file
Create a config.yaml
file with the following basic content:
# yaml-language-server: $schema=https://operagents.yyydl.top/schemas/config.schema.json
agents:
opening_scene: ""
scenes:
The first line is a comment that tells the YAML Language Server to use the schema from the specified URL. This will enable autocompletion and validation in your editor.
The schema is related to the version of the operagents framework you are using. The URL is in the format https://operagents.yyydl.top/schemas/config-<version>.schema.json
, where <version>
is the version of the framework, e.g. 0.0.1
. If no version is specified, the latest (master) version will be used.
Examples
Chatbot
cd examples/chatbot
env OPENAI_API_KEY=sk-xxx OPENAI_BASE_URL=https://api.openai.com/v1 operagents run config.yaml
Development
Open in Codespaces (Dev Container):
Or install the development environment locally with:
poetry install && poetry run pre-commit install
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
Hashes for operagents-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f40571ca6ab108a74655cd5752a864bf95c5e7b2794a6bd938578a4a9440090 |
|
MD5 | e353cf0cfbcdafc4c667bbbb189702b5 |
|
BLAKE2b-256 | 58753987ae4642b2491659b42884b26da7e1ac53c86b3693c46a6d476a029c56 |