v1

package
v0.2.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	ent.Schema
}

Chat holds the schema definition for the Chat entity.

func (Chat) Fields

func (Chat) Fields() []ent.Field

Fields of the User.

func (Chat) Indexes

func (Chat) Indexes() []ent.Index

type History

type History struct {
	CurrentID string             `json:"currentId"`
	Messages  map[string]Message `json:"messages"`
}

note:run go generate if the filed changes

type Message

type Message struct {
	ChildrenIds []string    `json:"childrenIds,omitempty"`
	Content     string      `json:"content,omitempty"`
	Context     string      `json:"context,omitempty"`
	ID          string      `json:"id,omitempty"`
	ParentId    string      `json:"parentId,omitempty"`
	Role        string      `json:"role,omitempty"`
	Timestamp   int64       `json:"timestamp,omitempty"`
	Done        bool        `json:"done,omitempty"`
	Info        interface{} `json:"info,omitempty"`
}

Jump to

Keyboard shortcuts

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