templatecompletion

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionRouteCorrectRequest

type CollectionRouteCorrectRequest struct {
	CommonRequest `json:",inline"`
	// contains filtered or unexported fields
}

type CollectionRouteCorrectResponse

type CollectionRouteCorrectResponse struct {
	Corrected   string `json:"corrected"`
	Explanation string `json:"explanation"`
}

type CollectionRouteCreatePrRequest

type CollectionRouteCreatePrRequest struct {
	ConnectorID object.ID `json:"connectorID"`
	Repository  string    `json:"repository"`
	Branch      string    `json:"branch"`
	Path        string    `json:"path"`
	Content     string    `json:"content"`

	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteCreatePrRequest) SetGinContext

func (r *CollectionRouteCreatePrRequest) SetGinContext(ctx *gin.Context)

func (*CollectionRouteCreatePrRequest) Validate

func (r *CollectionRouteCreatePrRequest) Validate() error

type CollectionRouteCreatePrResponse

type CollectionRouteCreatePrResponse struct {
	Link string `json:"link"`
}

type CollectionRouteExplainRequest

type CollectionRouteExplainRequest struct {
	CommonRequest `json:",inline"`
	// contains filtered or unexported fields
}

type CollectionRouteExplainResponse

type CollectionRouteExplainResponse = CommonResponse

type CollectionRouteGenerateRequest

type CollectionRouteGenerateRequest struct {
	CommonRequest `json:",inline"`
	// contains filtered or unexported fields
}

type CollectionRouteGenerateResponse

type CollectionRouteGenerateResponse = CommonResponse

type CollectionRouteGetExampleRequest

type CollectionRouteGetExampleRequest struct {
	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetExampleRequest) SetGinContext

func (r *CollectionRouteGetExampleRequest) SetGinContext(ctx *gin.Context)

type CollectionRouteGetExampleResponse

type CollectionRouteGetExampleResponse = []PromptExample

type CommonRequest

type CommonRequest struct {
	Text string `json:"text"`

	Context *gin.Context
}

func (*CommonRequest) SetGinContext

func (r *CommonRequest) SetGinContext(ctx *gin.Context)

func (*CommonRequest) Validate

func (r *CommonRequest) Validate() error

type CommonResponse

type CommonResponse struct {
	Text string `json:"text"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) CollectionRouteCreatePullRequest

func (h Handler) CollectionRouteCreatePullRequest(
	req CollectionRouteCreatePrRequest,
) (*CollectionRouteCreatePrResponse, error)

func (Handler) Kind

func (Handler) Kind() string

type PromptExample

type PromptExample struct {
	Name   string `json:"name"`
	Prompt string `json:"prompt"`
}

Jump to

Keyboard shortcuts

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