client

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatCompletion

func ChatCompletion(ctx context.Context, session_id string, prompt string, mode string, img_bytes [][]byte) chan models.StoredMessageData

func CompactMemory added in v0.1.13

func CompactMemory(session_id string) (int64, error)

func CreateSession

func CreateSession(prompt string) (string, error)

func DeleteSession

func DeleteSession(session_id string) error

func GetAvailableSkills added in v0.1.2

func GetAvailableSkills(session_id string) []string

func GetContextSize added in v0.1.2

func GetContextSize(session_id string) (int64, error)

func GetCopilotModels added in v0.2.0

func GetCopilotModels() ([]string, error)

func GetCurrentModel added in v0.1.2

func GetCurrentModel() (config.ResModel, error)

func GetCurrentTodoList

func GetCurrentTodoList(session_id string) ([]models.ToDo, error)

func GetModels added in v0.1.2

func GetModels() ([]api.ModelInfo, []api.ModelInfo, error)

func GetSessionData

func GetSessionData(session_id string) ([]models.Message, error)

func ListSession

func ListSession() ([]models.Session, error)

func Reverse

func Reverse(arr []models.Session) []models.Session

func SendMessage

func SendMessage(session_id string, message string, img_bytes [][]byte, mentions []string) (models.Message, error)

func SetApiKey added in v0.1.8

func SetApiKey(m api.ModelInfo, apikey string) error

func SetCurrentModel added in v0.1.8

func SetCurrentModel(m api.ModelInfo) error

func SetReasoningEffort added in v0.2.0

func SetReasoningEffort(effort string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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