Skip to main content

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 & Use

Install with pip from command line with:

pip install ao_pyth # https://pypi.org/project/ao-pyth/
# or
pip install git+https://github.com/aolabsai/ao_pyth

This open source reference design repo will walk you through a simple application using this library: https://github.com/aolabsai/ao_loop1/

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()

Metadata

Release files for ao-pyth 0.1.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ao-pyth 0.1.6.2
File Size Uploaded
ao_pyth-0.1.6.2.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ao-pyth 0.1.6.2
File Interpreter ABI Platform
ao_pyth-0.1.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / ao_pyth-0.1.6.2.tar.gz

Download URL ao_pyth-0.1.6.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d6bb8c0f2e4a2ba3ac4e68d1d520453792bb0c9c167bc7ebdeb33acbe6b6fce5
BLAKE2b-256 checksum
How to use checksums
b94752f66c77be21933d9bd98eb94d892d939dca01026d6b0162f57eedf45567
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / ao_pyth-0.1.6.2-py3-none-any.whl

Download URL ao_pyth-0.1.6.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2aa78cbee5a9f8e61bc1c324d15f6e08763406a05d625d1d3bb86462b77d40ed
BLAKE2b-256 checksum
How to use checksums
0c339fb46691529a25bfb30146337f5388b095b7f9073a6f0bb4b0786396fa90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.6.2 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page