https://github.com/indicio-tech/echo-agent
A simple, remote-controlled static agent
https://github.com/indicio-tech/echo-agent
hacktoberfest
Last synced: 2 months ago
JSON representation
A simple, remote-controlled static agent
- Host: GitHub
- URL: https://github.com/indicio-tech/echo-agent
- Owner: Indicio-tech
- License: apache-2.0
- Created: 2021-10-15T21:16:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T03:15:39.000Z (12 months ago)
- Last Synced: 2025-04-01T15:06:23.541Z (3 months ago)
- Topics: hacktoberfest
- Language: Python
- Homepage:
- Size: 228 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Echo Agent
The echo agent is a containerized static agent. This can be useful in a number
of scenarios, such as full agent testing and development.## Running the Echo Agent
```sh
docker run --rm -it -p 3000:80 dbluhm/echo-agent:latest
```## Interacting with the Echo Agent
After starting up the agent, you can use `http://localhost:3000/docs` to
interact with the agent through an OpenAPI UI. A client for your language of
choice may be generated from the `openapi.json` provided at
`http://localhost:3000/openapi.json`.A native python client is included in this project.
### Python Client
```python
from echo_agent import EchoClient, ConnectionInfo, Message
async def main():
async with EchoClient(base_url="http://localhost:3000") as echo:
conn: ConnectionInfo = await echo.new_connection(
seed="00000000000000000000000000000000",
their_vk="",
endpoint="http://example.com"
)
await echo.send_message(conn, Message.parse_from_obj({
"@type": "http://example.org/protocol/1.0/message",
"value": "example"
}))
response = await echo.wait_for_message(conn)
assert response
```