openTeam / open_team
A Team handle for a team another process ran, or to act as another principal.
RunResult.team is the common path. It binds the lead that ran: this process must define an agent of its name whose pin has its config_hash, else unavailable (nothing is recorded).
Import from @threads/core (TypeScript) or threads (Python).
function openTeam(store: Store, ref: TeamRef, options: {
principal: Principal;
}): Promise<Result<Team>>Parameters
storeStorerequiredThe store the team's logs live in, the one its lead ran with. See Store.
refTeamRefrequiredWhich team, as team.ref gives it. See TeamRef.
principalPrincipalrequiredWho acts through this handle. Every request it makes is recorded with this principal; another tenant's is forbidden.
Returns
Returns an error value with one of these codes: not_found, forbidden, unavailable.
host
Bind agents to a store, channels and schedules.
runEvals / run_evals
Runs every saved case under cases through the checks, cheapest first: replay (the recorded requests re-render byte for byte with the code running now), rerun (the recorded turn reruns offline to the same events, with no model call and every effect stubbed), drift (with agents: the case's recorded config against each agent as it is pinned now, by a dry pin that runs no setup, reads no secret and connects to no MCP server) and, only with live, a judged run of the current agent.