Add CLI for Synapse public backend API#38
Open
droxer wants to merge 2 commits into
Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
/v1) for creating agent runs, posting follow-up messages, and retrieving run status/results to aid development, automation, and debugging.Description
backend/public_api_cli.pyimplementing an asynchttpxclient (PublicApiClient) that talks to the/v1endpoints with bearer auth and JSON error handling.run(create a new agent run),message(post a follow-up message to a conversation),status(fetch run status), andresult(fetch run result with--formatselection), and include UUID validation viauuid.UUID.--base-url(orSYNAPSE_BASE_URL),--api-key(orSYNAPSE_API_KEY), and--timeout.synapse-cliby adding[project.scripts] synapse-cli = "public_api_cli:main"tobackend/pyproject.toml.Testing
python -m ruff format public_api_cli.py, which reformatted the file successfully.python -m ruff check public_api_cli.py, and the check passed.pytesttest suite was executed as part of this change.Codex Task