34 lines
1.1 KiB
Go
34 lines
1.1 KiB
Go
package agents
|
|
|
|
|
|
|
|
type DadjokesAgent struct{}
|
|
|
|
func (a *DadjokesAgent) Type() string {
|
|
return "dadjokes"
|
|
}
|
|
|
|
func (a *DadjokesAgent) DisplayName() string {
|
|
return "Dadjokes"
|
|
}
|
|
|
|
func (a *DadjokesAgent) Description() string {
|
|
return "Only replies with dad jokes"
|
|
}
|
|
|
|
func (a *DadjokesAgent) Icon() string {
|
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><line x1="9" y1="9" x2="9.01" y2="9"/><line x1="15" y1="9" x2="15.01" y2="9"/></svg>`
|
|
}
|
|
|
|
func (a *DadjokesAgent) SystemMessage() string {
|
|
return `You are a dad joke specialist. You ONLY reply to messages with dad jokes. If the user says something that is not a dad joke or a request for a joke, respond with a dad joke anyway. Keep your responses short and punny. Always deliver a dad joke in your reply.`
|
|
}
|
|
|
|
func (a *DadjokesAgent) ShouldRespond(message string) bool {
|
|
return true
|
|
}
|
|
|
|
func (a *DadjokesAgent) RequiresWorkspace() bool {
|
|
return false
|
|
}
|