Search Results for

    Show / Hide Table of Contents

    Class ReportmanAgentClient

    HTTP client for the Reportman AI agent service (api.reportman.es) that streams AI authoring requests — SQL suggestion/translation, expression suggestion, and report modification — over server-sent events, reporting incremental progress and returning the final JSON result.

    Inheritance
    object
    ReportmanAgentClient
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Reporting
    Assembly: Reportman.Reporting.dll
    Syntax
    public class ReportmanAgentClient

    Constructors

    View Source

    ReportmanAgentClient()

    Declaration
    public ReportmanAgentClient()

    Fields

    View Source

    DefaultBaseUrl

    Declaration
    public const string DefaultBaseUrl = "https://api.reportman.es:7006"
    Field Value
    Type Description
    string

    Properties

    View Source

    AITier

    Declaration
    public string AITier { get; set; }
    Property Value
    Type Description
    string
    View Source

    AgentAiId

    Declaration
    public long AgentAiId { get; set; }
    Property Value
    Type Description
    long
    View Source

    AgentSecret

    Declaration
    public string AgentSecret { get; set; }
    Property Value
    Type Description
    string
    View Source

    ApiKey

    Declaration
    public string ApiKey { get; set; }
    Property Value
    Type Description
    string
    View Source

    BaseUrl

    Declaration
    public string BaseUrl { get; set; }
    Property Value
    Type Description
    string
    View Source

    HubDatabaseId

    Declaration
    public long HubDatabaseId { get; set; }
    Property Value
    Type Description
    long
    View Source

    HubSchemaId

    Declaration
    public long HubSchemaId { get; set; }
    Property Value
    Type Description
    long
    View Source

    InstallId

    Declaration
    public string InstallId { get; set; }
    Property Value
    Type Description
    string
    View Source

    RuntimeDb

    Declaration
    public string RuntimeDb { get; set; }
    Property Value
    Type Description
    string
    View Source

    Token

    Declaration
    public string Token { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    ModifyReportAsync(string, string, string, string, string, object, ProgressEventHandler, CancellationToken)

    Declaration
    public Task<JsonDocument> ModifyReportAsync(string userPrompt, string reportDocument, string mode, string userLanguage, string existingContextJson, object sender, ReportmanAgentClient.ProgressEventHandler onProgress, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string userPrompt
    string reportDocument
    string mode
    string userLanguage
    string existingContextJson
    object sender
    ReportmanAgentClient.ProgressEventHandler onProgress
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<JsonDocument>
    View Source

    SuggestExpressionAsync(string, string, bool, int, string, string, object, ProgressEventHandler, CancellationToken)

    Declaration
    public Task<JsonDocument> SuggestExpressionAsync(string userPrompt, string currentExpression, bool fix, int cursorPosition, string mode, string semanticContextJson, object sender, ReportmanAgentClient.ProgressEventHandler onProgress, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string userPrompt
    string currentExpression
    bool fix
    int cursorPosition
    string mode
    string semanticContextJson
    object sender
    ReportmanAgentClient.ProgressEventHandler onProgress
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<JsonDocument>
    View Source

    SuggestSqlAsync(string, int, string, object, ProgressEventHandler, CancellationToken)

    Declaration
    public Task<JsonDocument> SuggestSqlAsync(string sql, int cursorPosition, string mode, object sender, ReportmanAgentClient.ProgressEventHandler onProgress, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string sql
    int cursorPosition
    string mode
    object sender
    ReportmanAgentClient.ProgressEventHandler onProgress
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<JsonDocument>
    View Source

    TranslateToSqlAsync(string, string, string, string, object, ProgressEventHandler, CancellationToken)

    Declaration
    public Task<JsonDocument> TranslateToSqlAsync(string userPrompt, string sqlToRefine, string mode, string userLanguage, object sender, ReportmanAgentClient.ProgressEventHandler onProgress, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string userPrompt
    string sqlToRefine
    string mode
    string userLanguage
    object sender
    ReportmanAgentClient.ProgressEventHandler onProgress
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<JsonDocument>

    Events

    View Source

    LogMessage

    Declaration
    public event Action<string> LogMessage
    Event Type
    Type Description
    Action<string>
    • View Source
    In this article
    Back to top Generated by DocFX