Skip to main content

General Agents client library

Project description

General Agents Python API client

Release Build status License

Documentation

The REST API documentation: https://docs.generalagents.com/

Installation

General Agents Python API client is available as a python package on PyPI:

pip install generalagents

Usage

This client includes both an interface for calling the agent, and a simple computer controller. An example execution loop:

from generalagents import Agent
from generalagents.macos import Computer

agent = Agent(model="ace-small", api_key='your-api-key-here')
computer = Computer()

instruction = "Star the generalagents-python github repository"
session = agent.start(instruction)
observation = computer.observe()

for _ in range(25):  # max actions
    action = session.plan(observation)
    print(f"Executing: {action}")
    if action.kind == "stop":
        break
    observation = computer.execute(action)

Contributing

See the contributing documentation.

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

generalagents-0.1.1.tar.gz (47.8 kB view details)

Uploaded Source

Built Distribution

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

generalagents-0.1.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file generalagents-0.1.1.tar.gz.

File metadata

  • Download URL: generalagents-0.1.1.tar.gz
  • Upload date:
  • Size: 47.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for generalagents-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fe2c81f7e6f20f0a4529aa2f19c94a21453578d52571d11ebde6deed7abd694d
MD5 a96becfa930962ec1e7869b05416139f
BLAKE2b-256 c3d627c98df8aa8350712e403f291069360f97f3878bf817e2e14ac29d866f07

See more details on using hashes here.

Provenance

The following attestation bundles were made for generalagents-0.1.1.tar.gz:

Publisher: publish-to-pypi.yml on generalagents/generalagents-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file generalagents-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: generalagents-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for generalagents-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0004c3e5fbf5834e281ce7d6a76bd320634a3292fda3eaeca33b0f39b10059b4
MD5 c55ee9693d898ffee7af3d727b317ef7
BLAKE2b-256 7de1377be0dbd56277084cf47dd70e3dd0bbb45e7140fbead35b1f8150cffbf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for generalagents-0.1.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on generalagents/generalagents-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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