Skip to main content

Crate nexo_poller_tools

Crate nexo_poller_tools 

Source
Expand description

LLM-callable tools for the poller subsystem.

Lives outside nexo-core so the dependency graph stays acyclic (core → poller → plugin-google → core would loop). main.rs pulls this crate alongside nexo-core and registers the tools per agent.

Six tools, all read + control on already-declared jobs:

  • pollers_list list every job + state
  • pollers_show detail for one job
  • pollers_run manual tick (bypasses schedule + lease)
  • pollers_pause set paused = 1
  • pollers_resume set paused = 0
  • pollers_reset wipe cursor / consecutive_errors

Create / delete are intentionally not exposed: a prompt-injection could plant a webhook_poll job aimed at internal infra. Operators still own pollers.yaml + agent pollers reload.

Structs§

PollersListTool
PollersPauseTool
PollersResetTool
PollersResumeTool
PollersRunTool
PollersShowTool

Functions§

register_all
Wire the six generic pollers_* tools plus every per-kind custom tool exposed by the registered Poller impls. Called from main.rs per agent.