IProgramSynthesisServingClient
Interfaces · AiDotNet.ProgramSynthesis.Serving
Sends program-synthesis work to an AiDotNet.Serving host instead of running it in-process: code tasks, sandboxed program execution and evaluation, and sandboxed SQL.
Known implementations: ProgramSynthesisServingClient
How It Works
ProgramSynthesisServingClient is the HTTP implementation. The host enforces its tier limits and
sandbox, so untrusted code never runs in the calling process.
Methods
| Method | Summary |
|---|---|
Task<CodeTaskResultBase> ExecuteCodeTaskAsync(CodeTaskRequestBase request, CancellationToken cancellationToken) |
Runs a code task (completion, generation, translation, review, …) on the host. |
Task<ProgramEvaluateIoResponse> EvaluateProgramIoAsync(ProgramEvaluateIoRequest request, CancellationToken cancellationToken) |
Runs a program in the host’s sandbox against input/output test cases. |
Task<ProgramExecuteResponse> ExecuteProgramAsync(ProgramExecuteRequest request, CancellationToken cancellationToken) |
Runs a program in the host’s sandbox and returns what it printed. |
Task<SqlExecuteResponse> ExecuteSqlAsync(SqlExecuteRequest request, CancellationToken cancellationToken) |
Runs a SQL query in the host’s SQL sandbox. |