Skip to main content

Prerequisites

  • Sign up for a Relace account.
  • Create an API key.
  • Install the Relace TypeScript SDK: npm install @relace-ai/relace
1

Transfer Source Code to Relace

Start by transferring the repository you want to run FAS on to Relace.
Keep track of the Relace repo_id in your database for future reference.You can optionally include a metadata parameter to retain any additional repository properties, and set auto_index: true if you want to try out our embeddings model.
2

Enable Fast Agentic Search

You can run FAS on any Relace Repo with:
3

Parse Server-Sent Events from Response

The agent returns a Server-Sent Events (SSE) stream with real-time updates as parallel tool calls execute.
stream
From the report_back tool, you can parse out relevant files and use them as context for your agent’s main LLM.
For more information and explanations of additional parameters see our API reference.To use Fast Agentic Search outside of Relace Repos, you must create an agent harness that includes the specific tools the underlying model was trained with.