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
ReportmanAgentClient
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
Properties
View Source
AITier
Declaration
public string AITier { get; set; }
Property Value
View Source
AgentAiId
Declaration
public long AgentAiId { get; set; }
Property Value
View Source
AgentSecret
Declaration
public string AgentSecret { get; set; }
Property Value
View Source
ApiKey
Declaration
public string ApiKey { get; set; }
Property Value
View Source
BaseUrl
Declaration
public string BaseUrl { get; set; }
Property Value
View Source
HubDatabaseId
Declaration
public long HubDatabaseId { get; set; }
Property Value
View Source
HubSchemaId
Declaration
public long HubSchemaId { get; set; }
Property Value
View Source
InstallId
Declaration
public string InstallId { get; set; }
Property Value
View Source
RuntimeDb
Declaration
public string RuntimeDb { get; set; }
Property Value
View Source
Token
Declaration
public string Token { get; set; }
Property Value
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
Returns
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
Returns
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
Returns
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
Returns
Events
View Source
LogMessage
Declaration
public event Action<string> LogMessage
Event Type