Extract output payload from an agent run. Parses the FinalPayload string property; falls back to { message: agentRun.Message } for conversational agents whose output sits in Message, or {} when both are empty.
{ message: agentRun.Message }
{}
Extract output payload from an agent run. Parses the FinalPayload string property; falls back to
{ message: agentRun.Message }for conversational agents whose output sits in Message, or{}when both are empty.