Help us shape the future of Go! Take the 2026 Go Developer Survey

msg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 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 FormatExecSummaryMessage

func FormatExecSummaryMessage(params *ExecSummaryMessageParams) (string, error)

func FormatHttpResponseMessage

func FormatHttpResponseMessage(params *HttpResponseMessageParams) (string, error)

func FormatPushMessage

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

func FormatStatMessage

func FormatStatMessage(params *StatMessageParams) (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
	Summary  bool
}

type ExecSummaryMessageParams

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

type HttpResponseMessageParams

type HttpResponseMessageParams struct {
	Status     string
	StatusCode int
	Headers    map[string][]string
	Body       string
}

type PushMessageParams

type PushMessageParams struct {
	CommandLine string
	Output      string
}

type StatMessageParams

type StatMessageParams struct {
	IsDirectory bool
	Size        int64
}

type SummaryMessageParams

type SummaryMessageParams struct {
	Summary string
}

type SummaryReqMessageParams

type SummaryReqMessageParams struct{}

type SystemMessageParams

type SystemMessageParams struct {
	Prompt 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