Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
func Run ¶
func Run[T any](maxDepth int, parallelism int, g *gen.Generator, prompts ...prompt.Prompt) (*Result[T], error)
Run will prompt until the llm responds with no tool calls, or until maxDepth is reached. Unless Output is already set, it will be set by using schema.From on the expected result struct. Does not work with gemini as of 2025-02-17.
func RunWithToolsOnly ¶ added in v0.11.3
func RunWithToolsOnly[T any](maxDepth int, parallelism int, g *gen.Generator, prompts ...prompt.Prompt) (*Result[T], error)
RunWithToolsOnly will prompt until the llm responds with a certain tool call. Prefer to use the Run function above, but gemini does not support the above function (requiring tools and structured output), so use this one instead for those models.
Click to show internal directories.
Click to hide internal directories.