Skip to content

feat(llm): add chat_typed<T> method to LlmProvider trait #456

@bug-ops

Description

@bug-ops

Add chat_typed<T>() default method to LlmProvider trait. T: DeserializeOwned + JsonSchema. Default impl wraps prompt with JSON schema instructions, parses with serde_json::from_str, retries once on parse failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    M27Milestone 27: Structured Output + Typed ToolsllmLLM provider related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions