MCPcopy Create free account
hub / github.com/Azure-Samples/rag-postgres-openai-python / _make_text_response

Function _make_text_response

tests/conftest.py:263–282  ·  view source on GitHub ↗
(answer: str)

Source from the content-addressed store, hash-verified

261 raise StopAsyncIteration
262
263 def _make_text_response(answer: str) -> Response:
264 return Response(
265 id="resp-test-123",
266 created_at=0,
267 model="gpt-5.4",
268 object="response",
269 output=[
270 ResponseOutputMessage(
271 id="msg-1",
272 type="message",
273 role="assistant",
274 status="completed",
275 content=[ResponseOutputText(type="output_text", text=answer, annotations=[])],
276 )
277 ],
278 tool_choice="auto",
279 tools=[],
280 status="completed",
281 parallel_tool_calls=True,
282 )
283
284 def _make_tool_call_response(tool_name: str, arguments: str, call_id: str = "fc_abc123") -> Response:
285 return Response(

Callers 1

mock_acreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected