types

package
v0.0.0-...-c20d9b3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIEmployeeParam

type AIEmployeeParam struct {
	IssueOpen      bool `json:"issue_open"`       // 是否处理新Issues
	MrPrOpen       bool `json:"mr_pr_open"`       // 是否处理全部新增PR/MR
	IssueAtComment bool `json:"issue_at_comment"` // 是否在issue评论中@工程师
	MrPrAtComment  bool `json:"mr_pr_at_comment"` // 是否mr/pr在评论中@工程师
}

type BaseURL

type BaseURL struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

type CustomOAuth

type CustomOAuth struct {
	Enable         bool     `json:"enable"`           // 自定义OAuth开关
	ClientID       string   `json:"client_id"`        // 自定义客户端ID
	ClientSecret   string   `json:"client_secret"`    // 自定义客户端密钥
	AuthorizeURL   string   `json:"authorize_url"`    // 自定义OAuth授权URL
	AccessTokenURL string   `json:"access_token_url"` // 自定义OAuth访问令牌URL
	UserInfoURL    string   `json:"userinfo_url"`     // 自定义OAuth用户信息URL
	Scopes         []string `json:"scopes"`           // 自定义OAuth Scope列表
	IDField        string   `json:"id_field"`         // 用户信息回包中的ID字段名
	NameField      string   `json:"name_field"`       // 用户信息回包中的用户名字段名`
	AvatarField    string   `json:"avatar_field"`     // 用户信息回包中的头像URL字段名`
	EmailField     string   `json:"email_field"`      // 用户信息回包中的邮箱字段名
}

type DingtalkOAuth

type DingtalkOAuth struct {
	Enable       bool   `json:"enable"`        // 钉钉OAuth开关
	ClientID     string `json:"client_id"`     // 钉钉客户端ID
	ClientSecret string `json:"client_secret"` // 钉钉客户端密钥
}

type ModelParam

type ModelParam struct {
	R1Enabled          bool `json:"r1_enabled"`
	MaxTokens          int  `json:"max_tokens"`
	ContextWindow      int  `json:"context_window"`
	SupprtImages       bool `json:"support_images"`
	SupportComputerUse bool `json:"support_computer_use"`
	SupportPromptCache bool `json:"support_prompt_cache"`
}

func DefaultModelParam

func DefaultModelParam() *ModelParam

type Position

type Position struct {
	Col    int `json:"col"`
	Line   int `json:"line"`
	Offset int `json:"offset"`
}

Jump to

Keyboard shortcuts

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