Class CodeCompletionRequest
- Namespace
- AiDotNet.ProgramSynthesis.Requests
- Assembly
- AiDotNet.dll
Request for code completion.
public sealed class CodeCompletionRequest : CodeTaskRequestBase
- Inheritance
-
CodeCompletionRequest
- Inherited Members
Remarks
For Beginners: You give partial code, and the system suggests how to finish it.
Properties
Code
public string Code { get; set; }
Property Value
CursorOffset
Optional cursor position (absolute offset) inside Code. When null, the cursor is assumed to be at the end of Code.
public int? CursorOffset { get; set; }
Property Value
- int?
MaxCandidates
Maximum number of completion candidates to return.
public int MaxCandidates { get; set; }
Property Value
Task
Gets the requested task.
public override CodeTask Task { get; }