Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationValue ¶
DurationValue interprets generic input values as a duration.
Semantics: - time.Duration and int64 are treated as already-normalized durations. - int/int32/float/json.Number/string numeric values are treated as seconds. - duration strings like "30s" use time.ParseDuration.
func IntValue ¶
func IntValue(value interface{}) int
IntValue extracts an integer from loosely typed map inputs.
func StringValue ¶
func StringValue(value interface{}) string
StringValue extracts a string from loosely typed map inputs.
func StringifyToolResult ¶
func StringifyToolResult(result core.ToolResult) string
StringifyToolResult formats tool output for trace/transcript usage.
func TruncateString ¶
TruncateString shortens text while preserving a visible ellipsis.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.