Type Alias: ApplyCurriedResponse
@kortexya/reasoninglayer / ApplyCurriedResponse
Type Alias: ApplyCurriedResponse
Section titled “Type Alias: ApplyCurriedResponse”ApplyCurriedResponse = {
allArguments:PositionalArgumentDto[];result:ExecutionValueDto;status:"fully_applied"; } | {curriedId:string;missingPositions:number[];remainingCount:number;status:"still_curried"; } | {reason:string;status:"cannot_curry"; }
Defined in: src/types/execution.ts:365
Response after applying arguments to a curried function.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ allArguments: PositionalArgumentDto[]; result: ExecutionValueDto; status: "fully_applied"; }
allArguments
Section titled “allArguments”allArguments:
PositionalArgumentDto[]
All arguments that were applied.
result
Section titled “result”result:
ExecutionValueDto
The computed result.
status
Section titled “status”status:
"fully_applied"
Discriminator.
Type Literal
Section titled “Type Literal”{ curriedId: string; missingPositions: number[]; remainingCount: number; status: "still_curried"; }
curriedId
Section titled “curriedId”curriedId:
string
Updated curried function ID.
missingPositions
Section titled “missingPositions”missingPositions:
number[]
Remaining missing argument positions.
remainingCount
Section titled “remainingCount”remainingCount:
number
Count of remaining missing arguments.
status
Section titled “status”status:
"still_curried"
Discriminator.
Type Literal
Section titled “Type Literal”{ reason: string; status: "cannot_curry"; }
reason
Section titled “reason”reason:
string
Reason why currying failed.
status
Section titled “status”status:
"cannot_curry"
Discriminator.
Remarks
Section titled “Remarks”Discriminated union by the status field.
fully_applied: All arguments provided, result computed.still_curried: Some arguments remain missing.cannot_curry: Function cannot be curried with the given arguments.