Docs · Author and upgrade workflows
tempergraph hooks
Commands the engine runs on lifecycle events: add, remove, list, test.
Usage#
tempergraph hooks [-h] {add,remove,list,test} ...hooks add#
register a command for an event: hooks add <event> -- <argv…>
tempergraph hooks add [-h] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] event ...| Argument | What it is |
|---|---|
<event> | the event the hook runs on |
<argv>… | the command and its arguments, after -- |
| Option | What 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-agent | the same as --caller agent |
--caller-app CALLER_APP | the name of the calling agent or pipeline application, recorded with the call |
--relayed | the decision is a person's, carried by an agent; checked against the person's last turn |
hooks remove#
remove one hook by its id
tempergraph hooks remove [-h] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id| Argument | What it is |
|---|---|
<id> | the hook's id, as hooks list prints it |
| Option | What 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-agent | the same as --caller agent |
--caller-app CALLER_APP | the name of the calling agent or pipeline application, recorded with the call |
--relayed | the decision is a person's, carried by an agent; checked against the person's last turn |
hooks list#
the registered hooks
tempergraph hooks list [-h]hooks test#
run an event's hooks once against a fixture facts file
tempergraph hooks test [-h] event| Argument | What it is |
|---|---|
<event> | the event to run the hooks of |
Edit this page on GitHub · engine 0.9.0