Skip to main content

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

ao_pyth-0.1.6.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ao_pyth-0.1.6.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ao_pyth-0.1.6.1.tar.gz.

File metadata

  • Download URL: ao_pyth-0.1.6.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ao_pyth-0.1.6.1.tar.gz
Algorithm Hash digest
SHA256 89c5f08ca11da6001ad11231952a486729772f4c07b7d2bea0f904eeb5c4c192
MD5 29bcfd545f3cbf66348fba597ce90267
BLAKE2b-256 9e8152859cf1839c6358c191fdf3995c5ec1424dcd0fefcad25fb754ba964c42

See more details on using hashes here.

File details

Details for the file ao_pyth-0.1.6.1-py3-none-any.whl.

File metadata

  • Download URL: ao_pyth-0.1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ao_pyth-0.1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a53a259e791f13ef4ea62ed1bfc8d4266fa52a3a0c0e0d0833b61ca4ebcdcdff
MD5 c1e568de927f0c37f72c42e00e09622b
BLAKE2b-256 717dd0791be3582ef189e2f18f91b5cd22d825eb5de330df9f86401576f5fd4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page