Documentation
¶
Index ¶
- Constants
- Variables
- type Schedule
- func (m *Schedule) SetAgentRef(v string)
- func (m *Schedule) SetConversationID(v string)
- func (m *Schedule) SetCreatedAt(v time.Time)
- func (m *Schedule) SetCreatedByUserID(v string)
- func (m *Schedule) SetCronExpr(v string)
- func (m *Schedule) SetDescription(v string)
- func (m *Schedule) SetEnabled(v bool)
- func (m *Schedule) SetEndAt(v time.Time)
- func (m *Schedule) SetGoalID(v string)
- func (m *Schedule) SetId(v string)
- func (m *Schedule) SetInternal(v bool)
- func (m *Schedule) SetIntervalSeconds(v int)
- func (m *Schedule) SetLastError(v string)
- func (m *Schedule) SetLastRunAt(v time.Time)
- func (m *Schedule) SetLastStatus(v string)
- func (m *Schedule) SetLeaseOwner(v string)
- func (m *Schedule) SetLeaseUntil(v time.Time)
- func (m *Schedule) SetModelOverride(v string)
- func (m *Schedule) SetName(v string)
- func (m *Schedule) SetNextRunAt(v time.Time)
- func (m *Schedule) SetScheduleType(v string)
- func (m *Schedule) SetStartAt(v time.Time)
- func (m *Schedule) SetTaskPrompt(v string)
- func (m *Schedule) SetTaskPromptUri(v string)
- func (m *Schedule) SetTimeoutSeconds(v int)
- func (m *Schedule) SetTimezone(v string)
- func (m *Schedule) SetUpdatedAt(v time.Time)
- func (m *Schedule) SetUserCredURL(v string)
- func (m *Schedule) SetVisibility(v string)
- type ScheduleHas
- type ScheduleInput
- type ScheduleInputHas
- type ScheduleListInput
- type ScheduleOutput
- type ScheduleRunDueListInput
- type ScheduleView
- type Schedules
Constants ¶
View Source
const SchedulePathListRunDueURI = "/v1/api/agently/scheduler/schedule/_internal/rundue"
View Source
const SchedulePathListURI = "/v1/api/agently/scheduler/"
Variables ¶
View Source
var SchedulePathURI = "/v1/api/agently/scheduler/schedule/{id}"
Functions ¶
This section is empty.
Types ¶
type Schedule ¶
type Schedule struct {
Id string `sqlx:"id,primaryKey" validate:"required"`
Name string `sqlx:"name" validate:"required"`
Description *string `sqlx:"description" json:",omitempty"`
CreatedByUserID *string `sqlx:"created_by_user_id" json:",omitempty"`
Visibility string `sqlx:"visibility"`
Internal *bool `sqlx:"internal" json:",omitempty"`
ConversationID *string `sqlx:"conversation_id" json:",omitempty"`
GoalID *string `sqlx:"goal_id" json:",omitempty"`
AgentRef string `sqlx:"agent_ref" validate:"required"`
ModelOverride *string `sqlx:"model_override" json:",omitempty"`
UserCredURL *string `sqlx:"user_cred_url" json:",omitempty"`
Enabled bool `sqlx:"enabled" `
StartAt *time.Time `sqlx:"start_at" json:",omitempty"`
EndAt *time.Time `sqlx:"end_at" json:",omitempty"`
ScheduleType string `sqlx:"schedule_type" validate:"required"`
CronExpr *string `sqlx:"cron_expr" json:",omitempty"`
IntervalSeconds *int `sqlx:"interval_seconds" json:",omitempty"`
Timezone string `sqlx:"timezone" validate:"required"`
TimeoutSeconds int `sqlx:"timeout_seconds"`
TaskPromptUri *string `sqlx:"task_prompt_uri" json:",omitempty"`
TaskPrompt *string `sqlx:"task_prompt" json:",omitempty"`
NextRunAt *time.Time `sqlx:"next_run_at" json:",omitempty"`
LastRunAt *time.Time `sqlx:"last_run_at" json:",omitempty"`
LastStatus *string `sqlx:"last_status" json:",omitempty"`
LastError *string `sqlx:"last_error" json:",omitempty"`
LeaseOwner *string `sqlx:"lease_owner" json:",omitempty"`
LeaseUntil *time.Time `sqlx:"lease_until" json:",omitempty"`
CreatedAt *time.Time `sqlx:"created_at" json:",omitempty"`
UpdatedAt *time.Time `sqlx:"updated_at" json:",omitempty"`
Has *ScheduleHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}
func (*Schedule) SetAgentRef ¶
func (*Schedule) SetConversationID ¶
func (*Schedule) SetCreatedAt ¶
func (*Schedule) SetCreatedByUserID ¶
func (*Schedule) SetCronExpr ¶
func (*Schedule) SetDescription ¶
func (*Schedule) SetEnabled ¶
func (*Schedule) SetInternal ¶
func (*Schedule) SetIntervalSeconds ¶
func (*Schedule) SetLastError ¶
func (*Schedule) SetLastRunAt ¶
func (*Schedule) SetLastStatus ¶
func (*Schedule) SetLeaseOwner ¶
func (*Schedule) SetLeaseUntil ¶
func (*Schedule) SetModelOverride ¶
func (*Schedule) SetNextRunAt ¶
func (*Schedule) SetScheduleType ¶
func (*Schedule) SetStartAt ¶
func (*Schedule) SetTaskPrompt ¶
func (*Schedule) SetTaskPromptUri ¶
func (*Schedule) SetTimeoutSeconds ¶
func (*Schedule) SetTimezone ¶
func (*Schedule) SetUpdatedAt ¶
func (*Schedule) SetUserCredURL ¶
func (*Schedule) SetVisibility ¶
type ScheduleHas ¶
type ScheduleHas struct {
Id bool
Name bool
Description bool
CreatedByUserID bool
Visibility bool
Internal bool
ConversationID bool
GoalID bool
AgentRef bool
ModelOverride bool
UserCredURL bool
Enabled bool
StartAt bool
EndAt bool
ScheduleType bool
CronExpr bool
IntervalSeconds bool
Timezone bool
TimeoutSeconds bool
TaskPromptUri bool
TaskPrompt bool
NextRunAt bool
LastRunAt bool
LastStatus bool
LastError bool
LeaseOwner bool
LeaseUntil bool
CreatedAt bool
UpdatedAt bool
}
type ScheduleInput ¶
type ScheduleInput struct {
Id string `parameter:",kind=path,in=id" predicate:"equal,group=0,t,id"`
DefaultPredicate string `parameter:",kind=const,in=value" predicate:"handler,group=0,*schedule.Filter" value:"0"`
Has *ScheduleInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}
type ScheduleInputHas ¶
type ScheduleListInput ¶
type ScheduleListInput struct {
DefaultPredicate string `parameter:",kind=const,in=value" predicate:"handler,group=0,*schedule.Filter" value:"0"`
}
type ScheduleOutput ¶
type ScheduleOutput struct {
response.Status `parameter:",kind=output,in=status" json:",omitempty"`
Data []*ScheduleView `parameter:",kind=output,in=view" view:"schedule,batch=10000,relationalConcurrency=1"`
Metrics response.Metrics `parameter:",kind=output,in=metrics"`
}
type ScheduleRunDueListInput ¶
type ScheduleRunDueListInput struct{}
ScheduleRunDueListInput is used by scheduler internals to list all schedules without user-visibility filtering.
type ScheduleView ¶
type ScheduleView = read.ScheduleView
Click to show internal directories.
Click to hide internal directories.