-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
10,889 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build and Publish JS SDK Package | ||
|
||
on: | ||
push: | ||
tags: [js-sdk-v*] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
publish: | ||
name: Build and publish SDK to NPM | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.x" | ||
registry-url: "https://registry.npmjs.org" | ||
cache: npm | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Install dependencies | ||
working-directory: ./packages/sdk/js/ | ||
run: npm ci | ||
|
||
- name: Publish package | ||
run: npm publish --access=public | ||
working-directory: ./packages/sdk/js/ | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build and Publish Python Agent Client Package | ||
|
||
on: | ||
push: | ||
tags: [python-client-v*] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
publish: | ||
name: Build and publish the Python package | ||
runs-on: ubuntu-20.04 | ||
defaults: | ||
run: | ||
working-directory: ./packages/client/python/ | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 1.5.1 | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
|
||
- name: Build Package | ||
run: poetry build | ||
|
||
- name: Config Poetry | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
- name: Publish Package | ||
run: poetry publish | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build and Publish Python SDK Package | ||
|
||
on: | ||
push: | ||
tags: [python-sdk-v*] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
publish: | ||
name: Build and publish the Python package | ||
runs-on: ubuntu-20.04 | ||
defaults: | ||
run: | ||
working-directory: ./packages/sdk/python/ | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 1.5.1 | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
|
||
- name: Build Package | ||
run: poetry build | ||
|
||
- name: Config Poetry | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
- name: Publish Package | ||
run: poetry publish | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.PHONY: generate | ||
generate: | ||
./scripts/generate.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Agent Communication Protocol - Python Client | ||
|
||
Python client for Agent Communication Protocol. This client simplifies the communication with the agent. | ||
|
||
## Installation | ||
|
||
```bash | ||
pip install agent-protocol-client | ||
``` | ||
|
||
## Getting Started | ||
|
||
You can find simple usage in the example [here](./examples/minimal.py). | ||
|
||
For more functionalities look at the [API docs](./docs/AgentApi.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# coding: utf-8 | ||
|
||
# flake8: noqa | ||
|
||
""" | ||
Agent Communication Protocol | ||
Specification of the API protocol for communication with an agent. # noqa: E501 | ||
The version of the OpenAPI document: v0.2 | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" | ||
|
||
|
||
__version__ = "1.0.0" | ||
|
||
# import apis into sdk package | ||
from agent_protocol_client.api.agent_api import AgentApi | ||
|
||
# import ApiClient | ||
from agent_protocol_client.api_response import ApiResponse | ||
from agent_protocol_client.api_client import ApiClient | ||
from agent_protocol_client.configuration import Configuration | ||
from agent_protocol_client.exceptions import OpenApiException | ||
from agent_protocol_client.exceptions import ApiTypeError | ||
from agent_protocol_client.exceptions import ApiValueError | ||
from agent_protocol_client.exceptions import ApiKeyError | ||
from agent_protocol_client.exceptions import ApiAttributeError | ||
from agent_protocol_client.exceptions import ApiException | ||
|
||
# import models into sdk package | ||
from agent_protocol_client.models.artifact import Artifact | ||
from agent_protocol_client.models.step import Step | ||
from agent_protocol_client.models.step_all_of import StepAllOf | ||
from agent_protocol_client.models.step_request_body import StepRequestBody | ||
from agent_protocol_client.models.task import Task | ||
from agent_protocol_client.models.task_all_of import TaskAllOf | ||
from agent_protocol_client.models.task_request_body import TaskRequestBody |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# flake8: noqa | ||
|
||
# import apis into api package | ||
from agent_protocol_client.api.agent_api import AgentApi |
Oops, something went wrong.