msg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatExecResponseMessage

func FormatExecResponseMessage(params *ExecResponseMessageParams) (string, error)

func FormatExecSummaryReqMessage

func FormatExecSummaryReqMessage(params *ExecSummaryReqMessageParams) (string, error)

func FormatPushMessage

func FormatPushMessage(params *PushMessageParams) (string, error)

func FormatSummaryMessage

func FormatSummaryMessage(params *SummaryMessageParams) (string, error)

func FormatSummaryReqMessage

func FormatSummaryReqMessage(params *SummaryReqMessageParams) (string, error)

func FormatSystemMessage

func FormatSystemMessage(params *SystemMessageParams) (string, error)

func FormatUserMessage

func FormatUserMessage(params *UserMessageParams) (string, error)

Types

type ExecResponseMessageParams

type ExecResponseMessageParams struct {
	ExitCode int
	Output   string
	Tail     bool
	Summary  bool
}

type ExecSummaryReqMessageParams

type ExecSummaryReqMessageParams struct {
	CommandLine string
	ExitCode    int
	Output      string
	Tail        bool // Indicates whether not full output is provided, but just a tail
}

type PushMessageParams

type PushMessageParams struct {
	CommandLine string
	Output      string
}

type SummaryMessageParams

type SummaryMessageParams struct {
	Summary string
}

type SummaryReqMessageParams

type SummaryReqMessageParams struct{}

type SystemMessageParams

type SystemMessageParams struct {
	Prompt string
	Script string
	OS     string
}

type UserMessageParams

type UserMessageParams struct {
	Request string

	Knowledge string
	Context   []string
}

Jump to

Keyboard shortcuts

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