Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
ID string `json:"id"`
Steps []Step `json:"steps"`
MinSteps int `json:"min_steps"`
MaxSteps int `json:"max_steps"`
Current int `json:"current"`
Status string `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Chain 推理链
type ChainConfig ¶
type ChainConfig struct {
MinSteps int // 最小推理步数
MaxSteps int // 最大推理步数
MinConfidence float64 // 最小置信度阈值
}
ChainConfig 推理链配置
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine 推理引擎
type EngineConfig ¶
type EngineConfig struct {
MinSteps int // 最小推理步数
MaxSteps int // 最大推理步数
MinConfidence float64 // 最小置信度
UseJSON bool // 是否使用 JSON 格式
Temperature float64 // 温度参数
}
EngineConfig 推理引擎配置
type NextAction ¶
type NextAction string
NextAction 下一步行动
const ( NextActionContinue NextAction = "continue" // 继续推理 NextActionComplete NextAction = "complete" // 完成推理 NextActionRetry NextAction = "retry" // 重试当前步骤 )
type Step ¶
type Step struct {
ID string `json:"id"`
Title string `json:"title"`
Action string `json:"action"`
Result string `json:"result"`
Reasoning string `json:"reasoning"`
Confidence float64 `json:"confidence"` // 0.0-1.0
Status StepStatus `json:"status"`
NextAction NextAction `json:"next_action"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Step 推理步骤
type StepStatus ¶
type StepStatus string
StepStatus 推理步骤状态
const ( StepStatusPending StepStatus = "pending" StepStatusRunning StepStatus = "running" StepStatusCompleted StepStatus = "completed" StepStatusFailed StepStatus = "failed" )
Click to show internal directories.
Click to hide internal directories.