org

package
v0.0.0-...-ae6e62c Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpsertOrganizationSignal       = "upsert-organization-signal"
	QueryOrganizationSummary       = "query-organization-summary"
	OrganizationWorkflowIDTemplate = "organization-workflow-%s" // e.g. organization-workflow-123
	MaxTicketSummaries             = 500
)

Variables

This section is empty.

Functions

func OrganizationWorkflow

func OrganizationWorkflow(ctx workflow.Context, organization Organization) error

Define the workflow

Types

type Activity

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

func NewActivity

func NewActivity(zClient zendesk.Client, genAPI genai.API) *Activity

func (*Activity) FetchOrganization

func (a *Activity) FetchOrganization(ctx context.Context, input FetchOrganizationInput) (*FetchOrganizationOutput, error)

func (*Activity) GenOrgSummary

func (a *Activity) GenOrgSummary(ctx context.Context, input GenSummaryInput) (*GenSummaryOutput, error)

type FetchOrganizationInput

type FetchOrganizationInput struct {
	ID int64
}

type FetchOrganizationOutput

type FetchOrganizationOutput struct {
	Organization Organization
}

type GenSummaryInput

type GenSummaryInput struct {
	Organization Organization
}

type GenSummaryOutput

type GenSummaryOutput struct {
	Summary string
}

type Organization

type Organization struct {
	ID      int64
	Name    string
	Notes   string
	Details string

	TicketSummaries map[int64]string

	// LLM generated summary
	Summary string
}

type QueryOrganizationOutput

type QueryOrganizationOutput struct {
	Summary string `json:"summary"`
}

type UpsertOrganizationInput

type UpsertOrganizationInput struct {
	OrganizationID int64
	TicketID       int64
	TicketSummary  string
}

Jump to

Keyboard shortcuts

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