General Agents client library
Project description
General Agents Python API client
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe2c81f7e6f20f0a4529aa2f19c94a21453578d52571d11ebde6deed7abd694d
|
|
| MD5 |
a96becfa930962ec1e7869b05416139f
|
|
| BLAKE2b-256 |
c3d627c98df8aa8350712e403f291069360f97f3878bf817e2e14ac29d866f07
|
Provenance
The following attestation bundles were made for generalagents-0.1.1.tar.gz:
Publisher:
publish-to-pypi.yml on generalagents/generalagents-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
generalagents-0.1.1.tar.gz -
Subject digest:
fe2c81f7e6f20f0a4529aa2f19c94a21453578d52571d11ebde6deed7abd694d - Sigstore transparency entry: 195707436
- Sigstore integration time:
-
Permalink:
generalagents/generalagents-python@d36f6a858685fb1d7842b6f05c8af501130f8efc -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/generalagents
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@d36f6a858685fb1d7842b6f05c8af501130f8efc -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0004c3e5fbf5834e281ce7d6a76bd320634a3292fda3eaeca33b0f39b10059b4
|
|
| MD5 |
c55ee9693d898ffee7af3d727b317ef7
|
|
| BLAKE2b-256 |
7de1377be0dbd56277084cf47dd70e3dd0bbb45e7140fbead35b1f8150cffbf6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
generalagents-0.1.1-py3-none-any.whl -
Subject digest:
0004c3e5fbf5834e281ce7d6a76bd320634a3292fda3eaeca33b0f39b10059b4 - Sigstore transparency entry: 195707444
- Sigstore integration time:
-
Permalink:
generalagents/generalagents-python@d36f6a858685fb1d7842b6f05c8af501130f8efc -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/generalagents
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@d36f6a858685fb1d7842b6f05c8af501130f8efc -
Trigger Event:
push
-
Statement type: