Threads AI

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

storeStorerequired

The store the team's logs live in, the one its lead ran with. See Store.

refTeamRefrequired

Which team, as team.ref gives it. See TeamRef.

principalPrincipalrequired

Who acts through this handle. Every request it makes is recorded with this principal; another tenant's is forbidden.

Returns

Team

Returns an error value with one of these codes: not_found, forbidden, unavailable.

Edit on GitHub

On this page