base

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnorableTool

func IgnorableTool(name string) bool

func WithSlackUpdate

func WithSlackUpdate(updateFunc SlackUpdateFunc) func(*Warren)

Types

type SlackUpdateFunc

type SlackUpdateFunc func(ctx context.Context, ticket *ticket.Ticket) error

SlackUpdateFunc is a callback function to update Slack messages when ticket is updated

type Warren

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

func New

func New(repo interfaces.Repository, policy interfaces.PolicyClient, ticketID types.TicketID, opts ...func(*Warren)) *Warren

func (*Warren) Configure

func (x *Warren) Configure(ctx context.Context) error

func (*Warren) Flags

func (x *Warren) Flags() []cli.Flag

func (*Warren) Helper

func (x *Warren) Helper() *cli.Command

func (*Warren) LogValue

func (x *Warren) LogValue() slog.Value

func (*Warren) Name

func (x *Warren) Name() string

func (*Warren) Prompt

func (x *Warren) Prompt(ctx context.Context) (string, error)

Prompt returns additional instructions for the system prompt

func (*Warren) Run

func (x *Warren) Run(ctx context.Context, name string, args map[string]any) (map[string]any, error)

func (*Warren) Specs

func (x *Warren) Specs(ctx context.Context) ([]gollem.ToolSpec, error)

Jump to

Keyboard shortcuts

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