Skip to content

Commit

Permalink
fix: support precision to agent/tool parameter rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Dec 27, 2024
1 parent 47514d8 commit f2ff1ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type AgentStrategyParameter struct {
Default any `json:"default" yaml:"default" validate:"omitempty,is_basic_type"`
Min *float64 `json:"min" yaml:"min" validate:"omitempty"`
Max *float64 `json:"max" yaml:"max" validate:"omitempty"`
Precision *int `json:"precision" yaml:"precision" validate:"omitempty"`
Options []ToolParameterOption `json:"options" yaml:"options" validate:"omitempty,dive"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ type ToolParameter struct {
Default any `json:"default" yaml:"default" validate:"omitempty,is_basic_type"`
Min *float64 `json:"min" yaml:"min" validate:"omitempty"`
Max *float64 `json:"max" yaml:"max" validate:"omitempty"`
Precision *int `json:"precision" yaml:"precision" validate:"omitempty"`
Options []ToolParameterOption `json:"options" yaml:"options" validate:"omitempty,dive"`
}

Expand Down

0 comments on commit f2ff1ab

Please sign in to comment.