Docs · Author and upgrade workflows

tempergraph hooks

Commands the engine runs on lifecycle events: add, remove, list, test.

Usage#

usage
tempergraph hooks [-h] {add,remove,list,test} ...

hooks add#

register a command for an event: hooks add <event> -- <argv…>

usage
tempergraph hooks add [-h] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] event ...
ArgumentWhat it is
<event>the event the hook runs on
<argv>…the command and its arguments, after --
OptionWhat it does
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

hooks remove#

remove one hook by its id

usage
tempergraph hooks remove [-h] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id
ArgumentWhat it is
<id>the hook's id, as hooks list prints it
OptionWhat it does
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

hooks list#

the registered hooks

usage
tempergraph hooks list [-h]

hooks test#

run an event's hooks once against a fixture facts file

usage
tempergraph hooks test [-h] event
ArgumentWhat it is
<event>the event to run the hooks of

Edit this page on GitHub · engine 0.9.0