llmutil

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

internal/llmutil/helpers.go

internal/llmutil/parser.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanCodeOutput

func CleanCodeOutput(content string) string

CleanCodeOutput removes common markdown artifacts (like ```go or ```diff) from a code or patch string.

func Float64Ptr

func Float64Ptr(f float64) *float64

Float64Ptr returns a pointer to a float64 value.

func ParseJSONResponse

func ParseJSONResponse[T any](response string) (*T, error)

ParseJSONResponse attempts to parse an LLM response string into a target Go type using generics. It handles common LLM formatting issues, such as wrapping the JSON in markdown code blocks.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL