models

package
v0.0.0-...-d4c902c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmalgamRequest

type AmalgamRequest struct {
	ProjectId int `urlPath:"projectId" json:"-"`
}

type AmalgamResponse

type AmalgamResponse struct {
	Content    string `json:"content"`
	TokenCount int    `json:"tokenCount"`
}

type ChatMessage

type ChatMessage struct {
	Content string `json:"content"`
	Role    string `json:"role"`
}

type ChatRequest

type ChatRequest struct {
	Messages []ChatMessage `json:"messages"`
}

type ChatResponse

type ChatResponse struct {
	Content *string `json:"content,omitempty"`
	Done    *bool   `json:"done,omitempty"`
	Error   *string `json:"error,omitempty"`
}

type CreateProjectRequest

type CreateProjectRequest struct {
	Path string `json:"path" validate:"required,filepath"`
}

type DeleteProjectRequest

type DeleteProjectRequest struct {
	Id *int `urlPath:"projectId" json:"-" validate:"required"`
}

type GetProjectRequest

type GetProjectRequest struct {
	Id *int `urlPath:"projectId" json:"-" validate:"required"`
}

type ListProjectsRequest

type ListProjectsRequest struct {
	Limit *int `urlQuery:"limit" json:"-"`
}

type ListProjectsResponse

type ListProjectsResponse struct {
	Projects []*Project `json:"projects"`
}

type Project

type Project struct {
	Id          *int       `json:"id"`
	Path        *string    `json:"path"`
	CreatedTime *time.Time `json:"createdTime"`
	UpdateTime  *time.Time `json:"updateTime"`
}

type UpdateProjectRequest

type UpdateProjectRequest struct {
	Id *int `urlPath:"projectId" json:"-" validate:"required"`
}

Jump to

Keyboard shortcuts

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