mirror of
https://github.com/openai/codex.git
synced 2026-10-21 09:54:56 +00:00
Use blueberry in the realtime background-agent test fixture (#45112)
Update the mock user transcript, assistant response, and expected delegation transcript in `websocket_v2_background_agent_returns_function_output` to use `blueberry` instead of `strawberry`. GitOrigin-RevId: a2c6209d2565529d63c7a45a65d1162ee1f60425
This commit is contained in:
committed by
copyberry
parent
b4c864dd64
commit
a7475e74aa
@@ -3358,7 +3358,7 @@ async fn websocket_v2_background_agent_returns_function_output() -> Result<()> {
|
||||
}),
|
||||
json!({
|
||||
"type": "conversation.item.input_audio_transcription.completed",
|
||||
"transcript": "The secret word is strawberry"
|
||||
"transcript": "The secret word is blueberry"
|
||||
}),
|
||||
json!({
|
||||
"type": "conversation.item.created",
|
||||
@@ -3373,7 +3373,7 @@ async fn websocket_v2_background_agent_returns_function_output() -> Result<()> {
|
||||
}),
|
||||
json!({
|
||||
"type": "response.output_audio_transcript.delta",
|
||||
"delta": "Got it-strawberry. What's next on the menu?"
|
||||
"delta": "Got it-blueberry. What's next on the menu?"
|
||||
}),
|
||||
v2_background_agent_tool_call("call_v2", "run ls"),
|
||||
],
|
||||
@@ -3404,7 +3404,7 @@ async fn websocket_v2_background_agent_returns_function_output() -> Result<()> {
|
||||
assert!(
|
||||
response_request_contains_text(
|
||||
&requests[0],
|
||||
"<realtime_delegation>\n <input>run ls</input>\n <transcript_delta>user: Hi how are you\nassistant: Doing well, what can I help you with?\nuser: The secret word is strawberry\nassistant: Got it-strawberry. What's next on the menu?\nuser: run ls</transcript_delta>\n</realtime_delegation>",
|
||||
"<realtime_delegation>\n <input>run ls</input>\n <transcript_delta>user: Hi how are you\nassistant: Doing well, what can I help you with?\nuser: The secret word is blueberry\nassistant: Got it-blueberry. What's next on the menu?\nuser: run ls</transcript_delta>\n</realtime_delegation>",
|
||||
),
|
||||
"delegated Responses request should contain realtime delegation envelope: {}",
|
||||
requests[0]
|
||||
|
||||
Reference in New Issue
Block a user