process

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Breakdown

type Breakdown struct {
	Goal         string        `json:"goal" jsonschema:"title=Goal,description=The goal of the task,required"`
	Breakdown    string        `json:"breakdown" jsonschema:"title=Breakdown,description=The breakdown of the task,required"`
	Requirements []Requirement `json:"requirements" jsonschema:"title=Requirements,description=The requirements of the task,required"`
}

func (*Breakdown) SystemPrompt

func (ta *Breakdown) SystemPrompt(key string) string

type Discussion

type Discussion struct {
	Topic       string `json:"topic" jsonschema:"title=Topic,description=The topic to discuss,required"`
	NextSpeaker string `json:"next_speaker" jsonschema:"title=Next Speaker,description=The name of the next speaker,required"`
}

Discussion is a process where multiple AI agents discuss a topic and come to a consensus, which will be the final response of the process.

func (*Discussion) SystemPrompt

func (discussion *Discussion) SystemPrompt(key string) string

SystemPrompt returns the system prompt for the Discussion process.

type Labelling

type Labelling struct {
	TicketID int   `json:"ticket_id" jsonschema:"required,description=The id of the ticket to label"`
	LabelIDs []int `json:"label_ids" jsonschema:"required,description=The ids of the labels to apply to the ticket"`
}

func NewLabelling

func NewLabelling() *Labelling

func (*Labelling) GenerateSchema

func (labelling *Labelling) GenerateSchema() string

func (*Labelling) ListLabels

func (labelling *Labelling) ListLabels() Labels

func (*Labelling) SystemPrompt

func (labelling *Labelling) SystemPrompt(key string) string

type Labels

type Labels struct {
	Data []struct {
		ID        int    `json:"id"`
		Name      string `json:"name"`
		Slug      string `json:"slug"`
		Color     string `json:"color"`
		SortOrder int    `json:"sort_order"`
		Archived  any    `json:"archived"`
	} `json:"data"`
	Links struct {
		First string `json:"first"`
		Last  string `json:"last"`
		Prev  any    `json:"prev"`
		Next  any    `json:"next"`
	} `json:"links"`
	Meta struct {
		CurrentPage int `json:"current_page"`
		From        int `json:"from"`
		LastPage    int `json:"last_page"`
		Links       []struct {
			URL    any    `json:"url"`
			Label  string `json:"label"`
			Active bool   `json:"active"`
		} `json:"links"`
		Path    string `json:"path"`
		PerPage int    `json:"per_page"`
		To      int    `json:"to"`
		Total   int    `json:"total"`
	} `json:"meta"`
}

type Requirement

type Requirement struct {
	Title       string   `json:"title" jsonschema:"title=Title,description=The title of the requirement,required"`
	Description string   `json:"description" jsonschema:"title=Description,description=The description of the requirement,required"`
	Processes   []string `` /* 169-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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