Skip to main content

Function: resolveContract()

resolveContract(subject): ResolvedContract | undefined

Defined in: packages/contracts/src/registry.ts:347

Finds the registration for a concrete subject or a registry key.

Parameters​

subject​

string

For example request.<uuid>.identity.subject.get.v1.

Returns​

ResolvedContract | undefined

The registration, or undefined when there is none, including for any agent.* subject: a command to an agent is registered in AGENT_COMMANDS, not here, and is never a contract.