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

Hi,
Is there any progress update on allowing optional?
Seeing a similar issue on AIP Logic when adding a helper functional with all optional parameters and trying to click “Add example”. Would be an incredibly helpful fix for our team.
Cheers

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.