Documentation
¶
Index ¶
- func HTTPHandler(llmClient llm.Client, slackIntegration slack_integration.Integration, ...) http.Handler
- func New(c Config, bot *internal.Bot, slackIntegration slack_integration.Integration, ...) *channelMonitor
- type ChannelMessage
- type Config
- type DirectMessage
- type Entry
- type ExecutableStdInData
- type ExecutableStdOutData
- type PromptData
- type TestChannelMonitorReportData
- type TestChannelMonitorRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPHandler ¶ added in v0.0.9
func HTTPHandler( llmClient llm.Client, slackIntegration slack_integration.Integration, prefix string, ) http.Handler
func New ¶
func New( c Config, bot *internal.Bot, slackIntegration slack_integration.Integration, llmClient llm.Client, ) *channelMonitor
Types ¶
type ChannelMessage ¶
type DirectMessage ¶
type Entry ¶
type Entry struct {
ChannelID string `yaml:"channel_id" json:"channel_id"`
Prompt string `yaml:"prompt" json:"prompt"`
PromptTemplate *template.Template `yaml:"-" json:"-"`
ResultSchema *jsonschema.Schema `yaml:"result_schema" json:"result_schema"`
Executable string `yaml:"executable" json:"executable"`
ExecutableArgs []string `yaml:"executable_args" json:"executable_args"`
}
type ExecutableStdInData ¶
type ExecutableStdOutData ¶
type ExecutableStdOutData struct {
DirectMessages []DirectMessage `json:"direct_messages"`
ChannelMessages []*ChannelMessage `json:"channel_messages"`
}
type PromptData ¶
type PromptData struct {
Message dto.SlackMessage
}
type TestChannelMonitorReportData ¶ added in v0.0.9
type TestChannelMonitorRequest ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.