@charles/my-agent

1
14
flwr new @charles/my-agent

Flower AgentApp

This minimal AgentApp uses the OpenAI SDK to send the configured agent.input through Flower Runtime. It republishes every streamed response event to the frontend and prints the final response text. Use it as a starting point for a custom Flower Agent.

Flower Runtime supplies the SDK base URL and task token, so the AgentApp does not need provider credentials.

Build

Install the project and build its Flower App Bundle (FAB):

uv sync
uv run flwr build

Customize and run

Edit agent/agent_app.py to change the model or add your agent logic. Then log in and run the app on SuperGrid:

uv run flwr login supergrid
uv run flwr run . supergrid --stream

Override the default input for a run with:

uv run flwr run . supergrid \
  --run-config 'agent.input="Explain agent harness in one paragraph."' \
  --stream

Learn more

See the Flower Agent documentation for more tutorials and guides.