Documentation ¶ Index ¶ type Result func Run[T any](maxDepth int, g *gen.Generator, prompts ...prompt.Prompt) (*Result[T], error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Result ¶ type Result[T any] struct { Prompts []prompt.Prompt Result T Metadata models.Metadata Depth int } func Run ¶ func Run[T any](maxDepth 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. Source Files ¶ View all Source files agent.go Click to show internal directories. Click to hide internal directories.