MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent

MentorStructuredService class

The MentorStructuredService class of Novior.MentorAgent.Core: Default IMentorStructured implementation (roadmap #12). Uses the configured ChatClient's…

View as Markdown
On this page

Default IMentorStructured implementation (roadmap #12). Uses the configured ChatClient's structured-output support (GetResponseAsync<T>) — the JSON schema is derived from the requested type T and the response is deserialized back to it.

Namespace: Novior.MentorAgent.Core. Package: Novior.MentorAgent.

public sealed class MentorStructuredService : IMentorStructured

Implements IMentorStructured.

Terminal
dotnet add package Novior.MentorAgent

public MentorStructuredService(IOptions<MentorOptions> options, ILogger<MentorStructuredService> logger)

public Task<T?> GenerateAsync<T>(string prompt, string? instructions = null, CancellationToken ct = default)