Documentation
¶
Index ¶
- Constants
- func TicketWorkflow(ctx workflow.Context, ticket Ticket) error
- type Activity
- func (a *Activity) FetchComments(ctx context.Context, input FetchCommentsInput) (*FetchCommentsOutput, error)
- func (a *Activity) FetchTicket(ctx context.Context, input FetchTicketInput) (*FetchTicketOutput, error)
- func (a *Activity) GenTicketSummary(ctx context.Context, input GenSummaryInput) (*GenSummaryOutput, error)
- func (a *Activity) SignalOrganization(ctx context.Context, input SignalOrganizationInput) error
- type FetchCommentsInput
- type FetchCommentsOutput
- type FetchTicketInput
- type FetchTicketOutput
- type GenSummaryInput
- type GenSummaryOutput
- type QueryTicketOutput
- type SignalOrganizationInput
- type Ticket
- type UpdateOrganizationSignal
- type UpsertTicketInput
Constants ¶
View Source
const ( UpsertTicketSignal = "upsert-ticket-signal" QueryTicketSummary = "query-ticket-summary" TicketWorkflowIDTemplate = "ticket-workflow-%s" // e.g. ticket-workflow-1234 where 1234 is the ticket ID )
View Source
const (
MaxCommentsBytes = 400 * 1024
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activity ¶
type Activity struct {
// contains filtered or unexported fields
}
func NewActivity ¶
func (*Activity) FetchComments ¶
func (a *Activity) FetchComments(ctx context.Context, input FetchCommentsInput) (*FetchCommentsOutput, error)
func (*Activity) FetchTicket ¶
func (a *Activity) FetchTicket(ctx context.Context, input FetchTicketInput) (*FetchTicketOutput, error)
func (*Activity) GenTicketSummary ¶
func (a *Activity) GenTicketSummary(ctx context.Context, input GenSummaryInput) (*GenSummaryOutput, error)
func (*Activity) SignalOrganization ¶
func (a *Activity) SignalOrganization(ctx context.Context, input SignalOrganizationInput) error
type FetchCommentsInput ¶
type FetchCommentsOutput ¶
type FetchTicketInput ¶
type FetchTicketInput struct {
ID string
}
type FetchTicketOutput ¶
type FetchTicketOutput struct {
Ticket Ticket
}
type GenSummaryInput ¶
type GenSummaryInput struct {
Ticket Ticket
}
type GenSummaryOutput ¶
type GenSummaryOutput struct {
Summary string
}
type QueryTicketOutput ¶
type QueryTicketOutput struct {
Summary string `json:"summary"`
}
type SignalOrganizationInput ¶
type Ticket ¶
type Ticket struct {
ID int64
Subject string
Description string
Priority string
Status string
Requester string
Assignee string
OrganizationID int64
OrganizationName string
CreatedAt *time.Time
UpdatedAt *time.Time
// Comments and cursor
Comments []string
NextCursor string
// LLM generated summary
Summary string
}
type UpsertTicketInput ¶
type UpsertTicketInput struct {
TicketID string
}
Click to show internal directories.
Click to hide internal directories.