microfoom
API referenceFunctions

deriveProgramInput

Function: deriveProgramInput()

function deriveProgramInput(filePath): DerivedParameters;

Defined in: packages/microfoom-core/src/schema_derive.ts:268

Derive the input schema of a program's main from its export default class (named or anonymous). Used to advertise a program as an agent tool: the result is an object schema keyed by main's single parameter name.

Parameters

ParameterType
filePathstring

Returns

DerivedParameters

On this page