Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Orchestrate multiple models, flows, or hybrid LLM and rules engines

A worked example

Yes or no

A Python operations application must invoke an existing document-review workflow created in the Microsoft Foundry portal and display its final text. The application already has an authenticated openai_client obtained from the workflow's Foundry project, and it knows the workflow's name.

The developer will create a fresh conversation and request streamed execution.

For each statement about implementing this invocation, select Yes if it is true. Otherwise, select No.

StatementYesNo
The application can identify the workflow through an agent_reference entry in extra_body when calling openai_client.responses.create.

The demonstrated invocation supplies the workflow name and the agent_reference type inside extra_body on the Responses API request.

Correct
Calling openai_client.conversations.create alone starts the named workflow.

Conversation creation establishes the conversation. The subsequent responses.create request supplies both its ID and the workflow reference to invoke the workflow.

Correct
After receiving response.completed, the application can retrieve the response using event.response.id and read its output_text.

The demonstrated completion handler retrieves the response by event.response.id and reads output_text to obtain the workflow's final text.

Correct
Why

The application invokes the existing workflow by referencing it in a Responses API request associated with a conversation. Creating the conversation is a separate operation and does not select or start the workflow. For streamed execution, the demonstrated handler uses the completion event to retrieve the final response text.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free