Operate v0.1.0-beta.15 Operate.VM.Extension.Agent View Source

Extends the VM state with functions for accessing the running agent.

Link to this section Summary

Functions

Loads and runs a tape from the given txid

Callback implementation for Operate.VM.Extension.extend/1.

Loads a tape by the given txid and returns the tape

Loads a list of tapes by the given query and returns the list

Loads a tape by the given txid and returns the tape

Runs the given tape, and returns the result

Link to this section Functions

Link to this function

exec(txid, state \\ nil)

View Source
This function is deprecated. Use load_tape/2 and run_tape/2 instead.

Loads and runs a tape from the given txid

Callback implementation for Operate.VM.Extension.extend/1.

Link to this function

load_tape(txid, opts \\ %{})

View Source

Loads a tape by the given txid and returns the tape

Link to this function

load_tapes_by(query, opts \\ %{})

View Source

Loads a list of tapes by the given query and returns the list

Link to this function

local_tape(vm, index, opts \\ %{})

View Source

Loads a tape by the given txid and returns the tape

Link to this function

run_tape(tape, opts \\ %{})

View Source

Runs the given tape, and returns the result