AI systems that learn like us, developed by aolabs.ai
Project description
The python package wrapper of the ao_core API.
This python repo wraps our api in a easy to use fast pip installable package. It is almost one to one with ao_core so most of the documentation will carry over here; we will add documentation below for futher instructions on how to use the library!
Installation
Install with pip from command line with:
pip install git+https://github.com/aolabsai/ao_python
Authentication & API keys
To get an API key, please message us on discord: https://discord.gg/mE3WBFaMQy
Documentation
To create a new Arch use:
arch = ao.Arch(arch_i="[1, 1, 1]", arch_z="[1]", connector_function="full_conn",
api_key=api_key, kennel_name=<<insert_unique_ID>>)
To initalise an Agent use:
agent = ao.Agent(Arch=arch,
api_key=api_key)
To invoke an Agent to get its output, use its next_state method:
agent.next_state(INPUT="111"):
response = agent.next_state(INPUT=input, LABEL=label)
agent_output = response["story"] # this is the output of the agent for use in your application
agent_state = response["state"]
print("Agent's response: ", agent_output, " - at state: ", agent_state)
To train an Agent, provide a label with next_state:
agent.next_state(INPUT="000", LABEL="0"):
To delete an Agent from our hosted database use:
agent.delete()
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
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 ao_pyth-0.1.3.tar.gz.
File metadata
- Download URL: ao_pyth-0.1.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70eb09d91f56cf7b6ad2113c8e43678caf0911d4c4dab629f3ae71776ea37b92
|
|
| MD5 |
715f7c7425bf7375813ca11209115d8c
|
|
| BLAKE2b-256 |
d91454d1cf15141f1560299a8ce0fc0261540c48f32062f62b32a2c8d6ef3547
|
File details
Details for the file ao_pyth-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ao_pyth-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa25fbdd053664342004ffdd1c401c5de455eb37d57439a948117340bd309ce1
|
|
| MD5 |
e693f69b7d80a113f252ef573b07ea4c
|
|
| BLAKE2b-256 |
c9618b72e19b9de8c1495d3d6886699f1389f9ca2a79d097bf8c872fb678765c
|