Skip to main content
send from @bijectionhq/app-agents asks an agent in your own commit. It submits the installation’s turn target, sent, atomically with your writes, and returns the Task. The task’s result is a TurnResult, answered when the turn completes, fails or is stopped.
send runs under the transcript label, so call it from a mutation under that label. TurnResult is { status, text, conversation, turn, error }, with status one of completed, failed and stopped. conversation is null when the message was refused before a conversation was named or opened, and turn is null when no turn was admitted.

On a schedule

A reaction runs on a standing source. It declares the roles the installation holds while it runs:

Usage

Each model call reserves MODEL_RESERVE (16,000) tokens on the model receiver’s meter, and settles with the count the provider reports. A turn’s tokens field totals that usage. maxRounds bounds the model calls of one turn. A lost reply from either receiver settles as Unknown, which is final, and fails the turn rather than paying twice.