UNPKG

smooth-operator-agent-tools

Version:

Node.js client library for Smooth Operator Agent Tools - a toolkit for programmers developing Computer Use Agents on Windows systems

31 lines (30 loc) 1.1 kB
import { CSharpCodeResponse } from '../models/models'; import { SmoothOperatorClient } from '../smooth-operator-client'; /** * API endpoints for code execution operations */ export declare class CodeApi { private client; /** * Creates a new instance of the CodeApi * @param client The SmoothOperatorClient instance */ constructor(client: SmoothOperatorClient); /** * Executes C# code on server and returns output * @param code C# code to run * @returns CSharpCodeResponse with execution result */ executeCSharp(code: string): Promise<CSharpCodeResponse>; /** * Generate and execute C# code based on a description * @param taskDescription Description of what the C# code should do, include error feedback if a previous try wasn't successful * @returns CSharpCodeResponse with execution result */ generateAndExecuteCSharp(taskDescription: string): Promise<CSharpCodeResponse>; /** * Returns a string representation of the CodeApi class. * @returns The string "CodeApi". */ toString(): string; }