SilverRiver SDK for advanced automation and AI-driven tasks
Project description
SilverRiver
SilverRiver is an SDK for advanced automation and AI-driven tasks.
Installation
You can install SilverRiver using pip:
pip install silverriver
Usage
Here's a basic example of how to use SilverRiver:
from silverriver.client import Crux
from silverriver.interfaces.chat import AgentChatInterface
# Initialize the Crux client
client = Crux(api_key="your_api_key_here")
# Create a chat interface (implement AgentChatInterface)
chat = YourChatImplementation()
# Create a browser session
browser_session, browser_obs, browser_meta = client.create_browser_session(start_url="https://www.example.com", chat=chat)
# Use the browser session to interact with web pages
# ...
# Get actions from the AI agent
observation = create_observation(browser_obs, chat.chat_history)
action = client.get_action(observation)
# Execute the action
browser_obs = browser_session.execute(action)
For more detailed examples and documentation, please refer to the example.py
file in the source code.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
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
silverriver-0.1.33.tar.gz
(9.5 kB
view details)
Built Distribution
File details
Details for the file silverriver-0.1.33.tar.gz
.
File metadata
- Download URL: silverriver-0.1.33.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36560a7cd78f67f8abe65771d0ce70d246e24f81a5b6ebf064764003c2c79c7d |
|
MD5 | f39f562024bc062dedd79b157a40dfa6 |
|
BLAKE2b-256 | 08dd10a6693121c665639068da8d6bb96d9e9b915f3ae34f740607f9996d1b0b |
File details
Details for the file silverriver-0.1.33-py3-none-any.whl
.
File metadata
- Download URL: silverriver-0.1.33-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59db1b445939c2a819a3164e6ba3a1ad6a21c51a582180cc0108a25401a5845 |
|
MD5 | 68317c2af1cf7854ef9f7a0938ecaced |
|
BLAKE2b-256 | 37668bb99a5b42db1f63b7fe5e706e7131f558b3b10008c8ad8bd53130969603 |