when • TypeScript AI Agent SDK
when: API reference for when
when
Function
</div>
This function is defined in the parity module.
Signature
def when(condition: (input: any) -> voidReturns
ResponseField
voidThe result of the operation.
Uses
If
Source
View on GitHubsrc/parity/index.ts at line 635