Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🤖agent_registry

Struct AgentRegistry

Shared registry of Talus agents and their skills, keyed by agent object ID.

Fields

id: sui::object::UID

Struct AgentRegistryInnerV1

Version one stored layout for [AgentRegistry].

Fields

agents: sui::table::Table<sui::object::ID, nexus_registry::agent_registry::AgentRecord>

Struct DefaultDagExecutorFieldKey

Dynamic-field key under which the registry stores its [DefaultDagExecutor].

Fields

Struct DefaultDagExecutor

Registry-owned default DAG executor for runtime-selected DAG execution.

The value embeds the actual default agent object and is stored as a dynamic field under AgentRegistry, making the registry the physical owner of the default executor surface.

Fields

agent: nexus_interface::agent::Agentskill_id: u64

Struct AgentRecord

Registry record for one Talus agent.

Fields

active: boolskills: sui::table::Table<u64, nexus_registry::agent_registry::SkillRecord>

Struct SkillRecord

Registry-owned metadata for a skill under an agent.

The skill ID is allocated from the agent-owned Agent. The registry keeps a skill table so callers can recover skill requirements without scanning dynamic children under the Agent.

Fields

description: vector<u8>active: booldag_binding: nexus_interface::agent::SkillDagBindingrequirements: nexus_interface::agent::SkillRequirementcurrent_interface_revision: nexus_interface::version::InterfaceVersion

Struct SkillContractRevisionedEvent

Emitted when a skill's interface revision advances (binding or policy change).

Fields

agent_id: sui::object::IDskill_id: u64current_interface_revision: nexus_interface::version::InterfaceVersiondag_binding: nexus_interface::agent::SkillDagBindingrequirements: nexus_interface::agent::SkillRequirement

Struct SkillRegisteredEvent

Emitted when a new skill is registered under an agent.

Fields

agent_id: sui::object::IDskill_id: u64dag_id: addressdag_binding: nexus_interface::agent::SkillDagBinding

Struct DefaultDagExecutorUpdatedEvent

Emitted when the registry-owned default DAG executor target is set or updated.

Fields

agent_id: sui::object::IDskill_id: u64

Enum SkillContractState

Current relationship between a proposal and one registered skill contract.

[Current] means admission may continue. [Inactive] is temporary and leaves the proposal pending. [Stale] and [Missing] cannot become valid without changing the immutable proposal.

Variants

Variant CurrentVariant InactiveVariant StaleVariant Missing

Constants

Function share_registry

Shares the canonical Agent registry for network use.

Once shared, mutations are guarded by mutable Agent custody rather than object ownership of the registry itself.

Function create_agent

Create a Talus agent record and its interface identity object.

The returned mutable Agent object becomes the custody handle for later lifecycle and skill-revision updates.

Function attach_embedded_agent

Attach an embedded TAP agent identity to the registry.

This lets examples keep custody of the Agent object inside their own state while still using the standard registry for skill discovery and execution resolution.

Function register_skill

Register a pinned-DAG skill.

The caller must have mutable custody of the agent. Revision 1 is stored as the current skill; historical revision lookup belongs to emitted events.

Function bootstrap_default_runtime_dag_skill_for_deployment

Bootstrap the standard default runtime-selected DAG skill for deployment.

This is the only public default bootstrap entry. It creates one default agent, allocates one runtime-selected skill, stores revision 1 as the current skill, and records that (agent, skill) in the registry default executor. The fixed default floor is intentionally narrow: user-funded zero-cap payments, a once schedule, no fixed tools, and active revision 1.

Function get_skill_requirements

Return requirements for the currently active interface revision.

Function new_default_task_components

Build the scheduled-skill components (authorization and payment reserve) for the registry-owned default DAG executor.

Aborts with [EAgentNotFound] if the stored default executor agent does not match its recorded ID.

Function withdraw_agent_payment_vault

Withdraw amount from an agent's payment vault to a returned coin.

Aborts with [EAgentNotFound] if the agent is not registered.

Function default_dag_executor_agent_id_from_registry

Returns the agent ID of the registry-owned default DAG executor.

Aborts with [EDefaultDagExecutorMissing] if no default executor has been bootstrapped.

Function default_dag_executor_skill_id_from_registry

Returns the skill ID of the registry-owned default DAG executor.

Aborts with [EDefaultDagExecutorMissing] if no default executor has been bootstrapped.

Function is_default_dag_executor_skill

Returns whether the given (agent_id, skill_id) is the registry-owned default DAG executor.

Aborts with [EDefaultDagExecutorMissing] if no default executor has been bootstrapped.

Function skill_pinned_dag_id_for_skill

Returns the pinned DAG ID for a skill, or none if the skill is runtime-selected.

Aborts with [ESkillNotFound] if the agent has no such skill.

Function skill_requirements_for_skill

Returns the requirements for an active skill under an active agent.

Aborts with [ESkillNotFound] if the skill does not exist, or [EActiveEndpointNotFound] if the agent or skill is inactive.

Function get_agent_skill_record

Returns the interface revision, payment policy, and schedule policy for an active skill.

Aborts with [ESkillNotFound] if the skill does not exist, or [EActiveEndpointNotFound] if the agent or skill is inactive.

Function classify_skill_contract

Classifies an immutable proposal against current Agent Registry state.

This function never aborts for a missing or inactive Agent or skill. That lets current Scheduler code commit a proven rejection instead of rolling it back through an abort.

Function skill_contract_is_current

Returns whether a skill contract classification permits admission.

Function skill_contract_is_inactive

Returns whether a skill contract may become admissible without changing the proposal.

Function resolve_agent_execution_config_dag

Resolves the DAG ID an execution config should run, honoring the skill's binding.

For runtime-selected skills, aborts with [EDagSelectionRequired] if no DAG is selected; for pinned skills, aborts with [EDagSelectionRedundant] if a DAG is selected. Aborts with [ESkillNotFound] or [EActiveEndpointNotFound] if the skill is missing or inactive.

Function resolve_execution_spec

Resolves caller intent into one durable execution target.

Function skill_dag_binding

Returns the DAG binding for a skill under an agent.

Aborts with [ESkillNotFound] if the agent has no such skill.

Function set_skill_active

Activate or deactivate a skill.

Aborts with [EAgentNotFound] if the agent is not registered.

Function set_agent_active

Activate or deactivate an agent.

Aborts with [EAgentNotFound] if the agent is not registered.

Function update_skill_description

Replace a skill's description.

Aborts with [EAgentNotFound] if the agent is not registered.

Function update_dag

Repoint a skill to a new pinned DAG, advancing its interface revision.

Aborts with [EAgentNotFound] if the agent is not registered.

Function update_skill_policies

Replace a skill's payment and schedule policies, advancing its interface revision.

Aborts with [EAgentNotFound] if the agent is not registered.

Last updated