AIP Logic does not respect optional parameters for actions

AIP does not respect optional action parameters. For example:

@Edits(MachineExecutions)
    @OntologyEditFunction()
    @ExternalSystems({ sources: [FoundryApis, Slack, OpenAICodeStrapEng] })
    public async updateState(
        plan?: string,
        forward: boolean = true,
        executionId?: string,
        inputs: string = '{}',
        xreason: string = SupportedEngines.COMS): Promise<void> {

In the action they correctly appear as optional:

But AIP Logic thinks they are required:

Logic currently doesn’t support Optional parameters but its something that we are aware is a pain point and we’ll address soon. For now, can you create a new action with the subset of fields you want to set as optional.empty()?

2 Likes