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

πŸ€–agent

Struct Agent

Keyed on-chain Talus agent identity object.

Custody of this object controls access to agent-owned dynamic object children such as the standard payment vault.

Fields

id: sui::object::UID

Struct AgentInnerV1

Version one stored layout for [Agent].

The stable [Agent] cannot contain these fields because its published layout must remain unchanged while stored data evolves.

Fields

next_skill_id: u64registry_id: std::option::Option<sui::object::ID>

Struct AgentExecutionConfig

Caller-authored runtime intent for DAG execution through an agent selection.

Fields

selection: nexus_interface::agent::ExecutionSelectionnetwork: sui::object::IDentry_group: nexus_interface::graph::EntryGroupinputs: sui::vec_map::VecMap<nexus_interface::graph::Vertex, sui::vec_map::VecMap<nexus_interface::graph::InputPort, nexus_primitives::data::NexusData>>invoker: addressauthorization_bindings: sui::vec_map::VecMap<nexus_interface::graph::Vertex, sui::object::ID>

Struct AgentVaultFieldKey

Dynamic object field key for the standard agent payment vault.

Fields

Struct FixedTool

Fixed-tool requirement storing the Tool registry ID and fully-qualified name recorded by a skill. Registration checks the FQN's current ToolRegistry presence; clients and operators must separately read back the selected DAG vertex, Tool ID, registry ID, and schema.

Fields

tool_registry_id: sui::object::IDtool_fqn: std::ascii::String

Struct SkillRequirement

Skill requirements committed by the current skill revision.

Fields

input_commitment: vector<u8>payment_policy: nexus_interface::payment::SkillPaymentPolicyschedule_policy: nexus_interface::agent::SkillSchedulePolicyfixed_tools: vector<nexus_interface::agent::FixedTool>

Struct ExecutionSpec

Resolved execution target retained by a durable scheduler Task.

[AgentExecutionConfig] is caller intent. [ExecutionSpec] is the registry validated target after agent, skill, DAG, and interface resolution.

Fields

dag_id: sui::object::IDagent_id: sui::object::IDskill_id: u64interface_version: nexus_interface::version::InterfaceVersionnetwork: sui::object::IDentry_group: nexus_interface::graph::EntryGroupinputs: sui::vec_map::VecMap<nexus_interface::graph::Vertex, sui::vec_map::VecMap<nexus_interface::graph::InputPort, nexus_primitives::data::NexusData>>invoker: address

Struct AgentPaymentVault

Standard balance holder for agent-funded TAP execution.

The vault is created with every agent as a dynamic object child. Deposits are permissionless, while withdrawals go through registry-mediated agent custody. Active payment_interface::ExecutionPayments split their locked SUI out of the vault at creation. The vault exposes only its available balance; execution locks are held by their ExecutionPayment objects.

Fields

id: sui::object::UID

Struct AgentPaymentVaultInnerV1

Version one stored layout for [AgentPaymentVault].

The stable [AgentPaymentVault] cannot contain these fields because its published layout must remain unchanged while stored data evolves.

Fields

agent_id: sui::object::IDavailable_balance: sui::balance::Balance<sui::sui::SUI>

Struct AgentCreatedEvent

Emitted when a new agent identity and its payment vault are created.

Fields

agent_id: sui::object::IDvault_id: address

Enum SkillDagBinding

Binding between a TAP skill and DAG selection.

Ordinary skills pin one DAG. The default skill may use RuntimeSelected, but the selected DAG must still be committed in execution evidence.

Variants

Variant Pinneddag_id: addressVariant RuntimeSelected

Enum ExecutionSelection

Selects either a registered Agent skill or the registry-owned default Agent for one DAG execution.

Variants

Variant AgentSkillagent_id: sui::object::IDskill_id: u64selected_dag: std::option::Option<sui::object::ID>Variant DefaultAgentdag_id: sui::object::ID

Enum SkillSchedulePolicy

Scheduling limits committed by one skill revision.

Variants

Variant OnceVariant Recurringmin_interval_ms: u64max_occurrences: std::option::Option<u64>

Constants

Function create_agent_identity

Create the on-chain identity object for one Talus agent.

The function initializes the Agent payment vault. Registry code is responsible for checking mutable agent custody before exposing this identity as an agent record.

Function allocate_skill_id

Allocate the next agent-local skill index.

Only code with mutable access to Agent can allocate, preventing external callers from forging skill IDs for an agent they do not control.

Function assert_agent_registry_authorized

Validate that the caller is the registry bound to this agent.

Function bind_agent_registry

Bind an agent identity to the registry that controls its skill metadata.

Only code that can borrow the registry UID later can register or update skills.

Function agent_next_skill_id

Returns the next skill index that would be allocated for this agent.

Function requirements_payment_policy

Returns the payment policy committed by these skill requirements.

Function requirements_schedule_policy

Returns the schedule policy committed by these skill requirements.

Function requirements_input_commitment

Returns the input commitment bytes committed by these skill requirements.

Function requirements_fixed_tools

Returns the fixed-tool requirements recorded by these skill requirements.

Function fixed_tool

Constructs a fixed tool identity from its registry ID and fully-qualified name.

Function fixed_tool_registry_id

Returns the tool registry ID of a fixed tool.

Function fixed_tool_fqn

Returns the fully-qualified name of a fixed tool.

Function execution_selection_agent_skill

Constructs an execution selection targeting a specific agent skill.

Function execution_selection_default_agent

Constructs an execution selection targeting the default agent for a DAG.

Function execution_selection_agent_id

Returns the agent ID of an agent-skill execution selection.

Aborts with EAgentExecutionSkillRequired if the selection is a default-agent selection.

Function execution_selection_skill_id

Returns the skill ID of an agent-skill execution selection.

Aborts with EAgentExecutionSkillRequired if the selection is a default-agent selection.

Function execution_selection_default_agent_dag_id

Returns the DAG ID of a default-agent execution selection.

Aborts with EDefaultAgentExecutionRequired if the selection is an agent-skill selection.

Function new_default_agent_execution_config

Builds an execution config that runs a DAG through the default agent.

The invoker is recorded as the transaction sender.

Function new_agent_execution_config

Builds an execution config that runs a DAG through a specific agent skill.

The invoker is recorded as the transaction sender.

Function agent_execution_config_dag_id

Returns the DAG ID of a default-agent execution config.

Aborts with EDefaultAgentExecutionRequired if the config targets an agent skill.

Function agent_execution_config_skill_id

Returns the skill ID of an agent-skill execution config.

Aborts with EAgentExecutionSkillRequired if the config targets the default agent.

Function agent_execution_config_selected_dag

Returns the runtime-selected DAG of an agent-skill execution config, if any.

Aborts with EAgentExecutionSkillRequired if the config targets the default agent.

Function agent_execution_config_agent_id

Returns the agent ID of an agent-skill execution config.

Aborts with EAgentExecutionSkillRequired if the config targets the default agent.

Function agent_execution_config_is_default

Returns whether caller intent selects the default Agent.

Function destroy_agent_execution_config

Consumes an execution config and returns its component fields.

Function execution_spec

Creates a durable execution target after registry validation.

Function execution_spec_dag_id

Returns the DAG pinned by [ExecutionSpec].

Function execution_spec_agent_id

Returns the agent pinned by [ExecutionSpec].

Function execution_spec_skill_id

Returns the skill pinned by [ExecutionSpec].

Function execution_spec_interface_version

Returns the interface revision pinned by [ExecutionSpec].

Function execution_spec_network

Returns the leader network pinned by [ExecutionSpec].

Function execution_spec_entry_group

Returns the entry group pinned by [ExecutionSpec].

Function execution_spec_inputs

Returns the input values pinned by [ExecutionSpec].

Function execution_spec_invoker

Returns the invoker recorded by [ExecutionSpec].

Function new_task_vertex_authorization_grants

Builds vertex authorization grants for a Task.

Function new_task_components_address_funded_with_grants

Builds the authorization and user funded reserve for a Task.

Function new_task_components_from_agent_vault_with_grants

Builds the authorization and Agent funded reserve for a Task.

Function assert_canonical_fixed_tools

Asserts that a fixed-tool list contains no duplicate entries.

Aborts with EFixedToolDuplicate if two entries share both registry ID and FQN.

Function cancel_task_reserve_to_vault

Cancels a scheduled payment reserve and returns its remaining funds to the agent vault.

Aborts with EVaultAgentMismatch if the reserve or vault does not belong to the agent.

Function refill_task_reserve_from_vault

Refills an agent funded Task reserve from its owning vault.

Function deposit_agent_payment_vault

Deposit SUI into an agent payment vault. Any sender may fund a vault.

Function refill_execution_payment_from_agent_vault_balance

Refill an agent-funded execution payment by withdrawing from the owning agent vault.

Function withdraw_agent_payment_vault

Withdraw spendable SUI from an agent payment vault.

Registry wrappers choose the authorization policy. Active execution funds are held in their separate ExecutionPayment; creation splits them from the vault, so the stored vault balance is spendable.

Function dag_binding_pinned

Constructs a skill DAG binding pinned to a specific DAG.

Function dag_binding_runtime_selected

Constructs a skill DAG binding whose DAG is selected at runtime.

Function dag_binding_is_runtime_selected

Returns whether a skill DAG binding selects its DAG at runtime.

Function dag_binding_pinned_dag_id

Returns the pinned DAG ID of a binding, or none when the DAG is runtime-selected.

Function agent_payment_vault_id

Returns the object address of the agent's payment vault.

Function agent_payment_vault_agent_id

Returns the agent ID recorded in the agent's payment vault.

Function agent_payment_vault_available_balance

Returns the spendable SUI balance of the agent's payment vault. Active execution funds are not in this stored vault balance.

Function skill_requirements

Constructs the input, payment, scheduling, and fixed-Tool requirements committed by a skill revision.

Function schedule_once

Creates a policy that permits exactly one dispatched occurrence.

Function schedule_recurring

Creates a recurring policy with a minimum interval and optional total cap.

Aborts with EInvalidSchedulePolicy if min_interval_ms is zero or a supplied max_occurrences is zero.

Function schedule_policy_allows_recurrence

Returns whether [SkillSchedulePolicy] permits recurrence.

Function schedule_policy_min_interval_ms

Returns the minimum dispatch interval.

Function schedule_policy_max_occurrences

Returns the total dispatch cap.

Last updated