Documentation
¶
Index ¶
- func CloneParams(params map[string]interface{}) map[string]interface{}
- func ConvertLegacyOutputsToTyped[T any](outputs map[string]any) (T, error)
- func ConvertTypedInputsToLegacy(inputs any) (map[string]any, error)
- func Max(a, b int) int
- func ParseJSONResponse(response string) (map[string]interface{}, error)
- func PopulateStructFromMap(structValue reflect.Value, structType reflect.Type, data map[string]any) error
- func SetFieldValue(fieldValue reflect.Value, value any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneParams ¶
CloneParams creates a deep copy of a parameter map.
func ConvertLegacyOutputsToTyped ¶
ConvertLegacyOutputsToTyped converts map[string]any to a typed struct.
func ConvertTypedInputsToLegacy ¶
ConvertTypedInputsToLegacy converts a typed struct to map[string]any.
func ParseJSONResponse ¶
ParseJSONResponse attempts to parse a string response as JSON. It handles common LLM response formats including: - Raw JSON. - JSON wrapped in markdown code blocks (```json ... ```).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.