Interface: ResolvedActor
Defined in: rine-core/dist/src/actor.d.ts:134
A resolved acting agent, and anything the caller has to be told about how it
was reached.
🔴 A per-call value, never a mutable attribute on a shared client. One
AsyncRineClient serves a whole eve/mastra process handling concurrent
inbound webhooks, and a lastActorWarning written while resolving one call
is read by whichever call happens to finish next — the warning then names the
wrong send, or is overwritten and lost. AsyncLocalStorage is the same shape
with the failure hidden, and eve runs on runtimes where it is not dependable.
So the warning rides the return value, and a surface that wants it resolves
once, explicitly, before the operation.
The twin of the Python stack's rine-sdk/src/rine/_actor.py::ResolvedActor;
agentId/agent_id are deliberate twins the way ACTING_AGENT_HEADER is.
Properties
| Property |
Modifier |
Type |
Description |
Defined in |
agentId |
readonly |
string |
- |
rine-core/dist/src/actor.d.ts:135 |
agents? |
readonly |
AgentRead[] |
The org's agent list this answer was read off, when the resolver fetched one — the seam a caller hands on as ResolveOptions.agents. 🔴 It is here so a surface that resolves an ACTOR and then resolves a bare RECIPIENT pays GET /agents once instead of twice: fetchAgents is uncached by design, and refuseIfABareAgentName's collision guard reads the very same key-scoped page the actor ladder just read. A memo inside rine-core is not the alternative — it would outlive a request this package has no way to scope — so the list rides the value the caller already holds. 🔴 Set by resolveActor alone, and only on the rung that fetched. Its UUID rung answers without reading a roster at all, and resolveAgent is handed the list by its own caller, who therefore already has it. So absent means "this resolver read no list for you", never "this org has no agents" — a reader fetches for itself and is never handed a list that was invented, stale, or another org's. The Python twin (rine-sdk/src/rine/_actor.py) carries no such field and needs none: both clients memoise _fetch_agents per client, so the second read is already free there. |
rine-core/dist/src/actor.d.ts:159 |
warning? |
readonly |
string |
- |
rine-core/dist/src/actor.d.ts:136 |