Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MsgCmdShortDesc = &i18n.Message{ ID: "commands.CmdShortDesc", Other: "Financial Trading LLM AI Agent. **This is Not Financial Advice.**", } MsgGlobalOptsVerbosityDesc = &i18n.Message{ ID: "commands.GlobalOptsVerbosityDesc", Other: "Number for the log level verbosity (0, 1, or 2)", } MsgGlobalOptsDataRootDesc = &i18n.Message{ ID: "commands.GlobalOptsDataRootDesc", Other: "Path of data root directory", } MsgGlobalOptsLangDesc = &i18n.Message{ ID: "commands.GlobalOptsLangDesc", Other: "The language used in UI (en or zh)", } MsgRootOptsModelDesc = &i18n.Message{ ID: "commands.RootOptsModelDesc", Other: "Primary model for the current session", } MsgRootOptsLightModelDesc = &i18n.Message{ ID: "commands.RootOptsLightModelDesc", Other: "Light model for the current session", } MsgRootOptsVisionModelDesc = &i18n.Message{ ID: "commands.RootOptsVisionModelDesc", Other: "Vision model for the current session", } MsgRootOptsPrintAndExitDesc = &i18n.Message{ ID: "commands.RootOptsPrintAndExitDesc", Other: "Print answer and exit after responding", } MsgRootOptsResumeDesc = &i18n.Message{ ID: "commands.RootOptsResumeDesc", Other: "Resume a previous session by session ID", } MsgRootOptsReasoningLevelDesc = &i18n.Message{ ID: "commands.RootOptsReasoningLevelDesc", Other: "Reasoning level (0, 1 or 2)", } MsgCmdShortDescModels = &i18n.Message{ID: "commands.CmdShortDescModels", Other: "Manage LLMs used by the agent"} MsgCmdShortDescModelsList = &i18n.Message{ID: "commands.CmdShortDescModelsList", Other: "List available models"} MsgCmdShortDescModelsAdd = &i18n.Message{ID: "commands.CmdShortDescModelsAdd", Other: "Add a model provider configuration"} MsgModelNameTag = &i18n.Message{ID: "commands.ModelNameTag", Other: "Name"} MsgReasoningTag = &i18n.Message{ID: "commands.ReasoningTag", Other: "Reasoning"} MsgVisionTag = &i18n.Message{ID: "commands.VisionTag", Other: "Vision"} MsgModelContextTag = &i18n.Message{ID: "commands.ModelContextTag", Other: "Context"} MsgScoreTag = &i18n.Message{ID: "commands.ScoreTag", Other: "Score"} MsgModelsAddOptAPIKeyDesc = &i18n.Message{ID: "commands.ModelsAddOptAPIKeyDesc", Other: "API key for the provider"} MsgModelsAddOptBaseURLDesc = &i18n.Message{ID: "commands.ModelsAddOptBaseURLDesc", Other: "Base URL for the provider API"} MsgModelsAddOptNameDesc = &i18n.Message{ID: "commands.ModelsAddOptNameDesc", Other: "Display name for the provider (required for openai-compatible)"} MsgCmdShortDescOtter = &i18n.Message{ID: "commands.CmdShortDescOtter", Other: "Print Otter image"} MsgOtterOptsColorDesc = &i18n.Message{ID: "commands.OtterOptsColorDesc", Other: "Print with color"} MsgOtterOptsBackgroundDesc = &i18n.Message{ID: "commands.OtterOptsBackgroundDesc", Other: "Print with background"} MsgOtterOptsScaleDesc = &i18n.Message{ID: "commands.OtterOptsScaleDesc", Other: "Scaling factor"} MsgCmdShortDescVersion = &i18n.Message{ID: "commands.CmdShortDescVersion", Other: "Print the version information"} MsgVersionOptsOutputFormatDesc = &i18n.Message{ID: "commands.VersionOptsOutputFormatDesc", Other: "Output format. One of (json)"} )
Functions ¶
Types ¶
type APOOptions ¶
type APOOptions struct {
// 优化选项文件
OptionsFile string
// 最大迭代轮次
MaxTurns int
// 预期准确率
ExpectedAccuracy float64
}
APOOptions internal-tools apo 子命令选项
func (*APOOptions) AddPFlags ¶
func (o *APOOptions) AddPFlags(fs *pflag.FlagSet)
AddPFlags 将选项绑定到命令行参数
type GlobalOptions ¶
type GlobalOptions struct {
// 日志数量级别( 0 / 1 / 2 )
Verbosity uint32
// 数据存储根目录
DataRoot string
// 语言
Language string
}
GlobalOptions 全局选项
func (*GlobalOptions) AddPFlags ¶
func (o *GlobalOptions) AddPFlags(fs *pflag.FlagSet)
AddPFlags 将选项绑定到命令行参数
type ModelsAddOptions ¶ added in v0.3.0
ModelsAddOptions models add 子命令选项
func NewModelsAddOptions ¶ added in v0.3.0
func NewModelsAddOptions() ModelsAddOptions
NewModelsAddOptions 创建默认 ModelsAddOptions
func (*ModelsAddOptions) AddPFlags ¶ added in v0.3.0
func (opts *ModelsAddOptions) AddPFlags(fs *pflag.FlagSet)
AddPFlags 将选项绑定到命令行参数
type Options ¶
type Options struct {
Model string
VisionModel string
PrintAndExit bool
Resume string
ReasoningLevel int
}
Options 运行选项
type OtterOptions ¶
OtterOptions otter 子命令选项
func (*OtterOptions) AddPFlags ¶
func (opts *OtterOptions) AddPFlags(fs *pflag.FlagSet)
AddPFlags 将选项绑定到命令行参数
type VersionOptions ¶ added in v0.1.1
type VersionOptions struct {
// 输出格式
// yaml 或 json
OutputFormat string `json:"outputFormat,omitempty" yaml:"outputFormat,omitempty"`
}
VersionOptions version 子命令选项
func NewVersionOptions ¶ added in v0.1.1
func NewVersionOptions() VersionOptions
NewVersionOptions 创建默认的 version 子命令选项
func (*VersionOptions) AddPFlags ¶ added in v0.1.1
func (opts *VersionOptions) AddPFlags(fs *pflag.FlagSet)
AddPFlags 将选项绑定到命令行
func (*VersionOptions) Validate ¶ added in v0.1.1
func (opts *VersionOptions) Validate() error
Validate 校验选项
Click to show internal directories.
Click to hide internal directories.