contract

package
v0.0.0-...-1c246ab Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthPayload

type AuthPayload struct {
	AuthType *oauthmanager.ProviderType
}

type Cache

type Cache interface {
	Set(ctx context.Context, key string, val interface{}, duration time.Duration) error
	Get(ctx context.Context, key string) (val interface{}, found bool)
	TTL(ctx context.Context, key string) (time.Duration, error)
	Delete(ctx context.Context, key string) error
}

type GPT4WebService

type GPT4WebService interface {
	Prompt(ctx context.Context, payload gpt4_webservice.GPT4PromptRequestDao) (gpt4_webservice.GPT4PromptResponseDao, error)
}

type Publisher

type Publisher interface {
	Publish(topic string, msg interface{}) error
}

type Repository

type Repository interface {
	// Conversations Repository
	UpsertConversation(ctx context.Context, userID string, message []repository.Message, summary *repository.Summary) error
}

Jump to

Keyboard shortcuts

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