scheduler

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AgentTaskType = "agent_task"

Constant for the default task type used by the agent

Variables

This section is empty.

Functions

func NewSchedulerTools

func NewSchedulerTools(s *xcron.Scheduler) []types.Tool

NewSchedulerTools creates a set of tools for interacting with the xcron scheduler

func RegisterAgentTaskHandler

func RegisterAgentTaskHandler(s *xcron.Scheduler, agentExecutor func(input string) error)

RegisterAgentTaskHandler registers a handler that executes agent tasks agentExecutor is a function that takes the payload (instruction) and executes it using the agent

Types

type DeleteJobTool

type DeleteJobTool struct {
	// contains filtered or unexported fields
}

func (*DeleteJobTool) Description

func (t *DeleteJobTool) Description() string

func (*DeleteJobTool) Execute

func (t *DeleteJobTool) Execute(input map[string]interface{}) (interface{}, error)

func (*DeleteJobTool) Metadata

func (t *DeleteJobTool) Metadata() types.ToolMetadata

func (*DeleteJobTool) Name

func (t *DeleteJobTool) Name() string

func (*DeleteJobTool) Schema

func (t *DeleteJobTool) Schema() map[string]interface{}

type ListJobsTool

type ListJobsTool struct {
	// contains filtered or unexported fields
}

func (*ListJobsTool) Description

func (t *ListJobsTool) Description() string

func (*ListJobsTool) Execute

func (t *ListJobsTool) Execute(input map[string]interface{}) (interface{}, error)

func (*ListJobsTool) Metadata

func (t *ListJobsTool) Metadata() types.ToolMetadata

func (*ListJobsTool) Name

func (t *ListJobsTool) Name() string

func (*ListJobsTool) Schema

func (t *ListJobsTool) Schema() map[string]interface{}

type ScheduleJobTool

type ScheduleJobTool struct {
	// contains filtered or unexported fields
}

func (*ScheduleJobTool) Description

func (t *ScheduleJobTool) Description() string

func (*ScheduleJobTool) Execute

func (t *ScheduleJobTool) Execute(input map[string]interface{}) (interface{}, error)

func (*ScheduleJobTool) Metadata

func (t *ScheduleJobTool) Metadata() types.ToolMetadata

func (*ScheduleJobTool) Name

func (t *ScheduleJobTool) Name() string

func (*ScheduleJobTool) Schema

func (t *ScheduleJobTool) Schema() map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL