Table of Contents

Class CodeTaskRequestBase

Namespace
AiDotNet.ProgramSynthesis.Requests
Assembly
AiDotNet.dll

Base type for all code task execution requests.

public abstract class CodeTaskRequestBase
Inheritance
CodeTaskRequestBase
Derived
Inherited Members

Remarks

This request model is used as the canonical input shape for all CodeTask operations. Concrete request types (e.g., completion, search, code review) add task-specific fields.

For Beginners: This is the common "envelope" for any code task request.

Think of this as a form you submit to ask the system to do something with code. The specific task (like Search or CodeReview) determines which extra fields you need to fill in.

Constructors

CodeTaskRequestBase()

protected CodeTaskRequestBase()

Properties

Language

Gets or sets the primary language context for the request.

public ProgramLanguage Language { get; set; }

Property Value

ProgramLanguage

MaxWallClockMilliseconds

Gets or sets an optional wall-clock time budget (in milliseconds) for the request.

public int? MaxWallClockMilliseconds { get; set; }

Property Value

int?

Remarks

This is a best-effort time budget for request processing. When running through AiDotNet.Serving, the effective time budget is clamped by the tier limits configured on the server.

For Beginners: This is a "timeout" for the request. If the work takes too long, the server can stop processing and return a failure result instead of hanging forever.

RequestId

Gets or sets an optional request identifier for correlation and tracing.

public string? RequestId { get; set; }

Property Value

string

SqlDialect

Gets or sets the SQL dialect to use when Language is SQL.

public SqlDialect? SqlDialect { get; set; }

Property Value

SqlDialect?

Remarks

If not specified, Serving uses its configured default dialect (typically SQLite).

Task

Gets the requested task.

public abstract CodeTask Task { get; }

Property Value

CodeTask