Skip to main content

Prerequisites

The steps below assume your key is set as PHYLO_API_KEY:
To test your API key, try listing projects:
Note that https://api.phylo.bio/v1 is the self-serve base URL. If you’re an Enterprise customer, contact your Phylo representative for your API base URL.

Using a Biomni agent

1

Create a project

To get started, let’s create a project. Projects group related tasks and files:
This returns something like:
2

Start a task

Now that we have a project, let’s start a task. A task is one conversation with the agent:
This returns something like:
3

Check the status

Now that the agent is working, let’s check on it. status moves from running to completed, failed, or cancelled:
The full record returns something like:
Agent tasks can run for hours, so design for long-running work rather than blocking a single request on the result.
4

Download the results

Now that the task is done, let’s collect its output. Save the files the agent wrote:
The results list returns something like:
download_url is presigned and short-lived, so fetch it soon after listing.
5

Send a message

Now that we have results, let’s keep the conversation going. Ask a follow-up in the same task:
This returns your message and the agent’s reply so far:

Where to go next

Congratulations, you just ran a Biomni agent! That loop is the foundation, and there is a lot more the agent can do:
  • Upload a file and attach it to a message with file_ids, so the agent works on your own data.
  • Run a scientific review to have a reviewer agent check a finished task’s analysis for scientific accuracy.
  • Start a task with plan_mode, and the agent writes a plan for you to approve before it starts work.
  • Errors covers status codes, retries, and backoff.