Documentation ¶
Index ¶
- Constants
- func CreateTask(tasksService *taskV1.Service, taskList string, title string, note string) *taskV1.Task
- func DeleteTask(tasksService *taskV1.Service, taskList string, taskID string)
- func GetTask(tasksService *taskV1.Service, taskList string, taskID string) *taskV1.Task
- func ListAllTasks(tasksService *taskV1.Service)
- func ListTaskLists(tasksService *taskV1.Service)
- func ListTasks(tasksService *taskV1.Service, taskList string) []*taskV1.Task
- func UpdateTask(tasksService *taskV1.Service, taskList string, taskID string, title string, ...) *taskV1.Task
- type ChatRequest
- type ChatResponse
- type Choice
- type ChoiceMessage
- type Groq
- type LLM
- type Message
- type RecommendationItem
- type Recommendations
- type StoreToken
- type Storer
Constants ¶
View Source
const (
CHAT_URL = "https://api.groq.com/openai/v1/chat/completions"
)
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶
func ListAllTasks ¶
func ListTaskLists ¶
Types ¶
type ChatRequest ¶
type ChatResponse ¶
type ChatResponse struct {
Choices []Choice `json:"choices"`
}
type Choice ¶
type Choice struct {
Message ChoiceMessage `json:"message"`
}
type ChoiceMessage ¶
type Groq ¶
func (*Groq) Chat ¶
func (g *Groq) Chat(request ChatRequest) (*ChatResponse, error)
type LLM ¶
type LLM interface {
Chat(request ChatRequest) (*ChatResponse, error)
}
type RecommendationItem ¶
type Recommendations ¶
type Recommendations struct {
Recommendations []RecommendationItem `json:"recommendations"`
}
func Recommendation ¶
func Recommendation(llm LLM, tasks []*tasks.Task, content string) *Recommendations
type StoreToken ¶
Click to show internal directories.
Click to hide internal directories.