Skip to content

Commit c7a78a1

Browse files
committed
Remove merge duplicate
1 parent afeaaa5 commit c7a78a1

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

tests/contrib/openai_agents/test_openai.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,47 +2068,6 @@ async def run(self, question: str) -> str:
20682068
return result.final_output
20692069

20702070

2071-
class ResponseBuilders:
2072-
@staticmethod
2073-
def model_response(output: TResponseOutputItem) -> ModelResponse:
2074-
return ModelResponse(
2075-
output=[output],
2076-
usage=Usage(),
2077-
response_id=None,
2078-
)
2079-
2080-
@staticmethod
2081-
def tool_call(arguments: str, name: str) -> ModelResponse:
2082-
return ResponseBuilders.model_response(
2083-
ResponseFunctionToolCall(
2084-
arguments=arguments,
2085-
call_id="call",
2086-
name=name,
2087-
type="function_call",
2088-
id="id",
2089-
status="completed",
2090-
)
2091-
)
2092-
2093-
@staticmethod
2094-
def output_message(text: str) -> ModelResponse:
2095-
return ResponseBuilders.model_response(
2096-
ResponseOutputMessage(
2097-
id="",
2098-
content=[
2099-
ResponseOutputText(
2100-
text=text,
2101-
annotations=[],
2102-
type="output_text",
2103-
)
2104-
],
2105-
role="assistant",
2106-
status="completed",
2107-
type="message",
2108-
)
2109-
)
2110-
2111-
21122071
class McpServerModel(StaticTestModel):
21132072
responses = [
21142073
ResponseBuilders.tool_call(

0 commit comments

Comments
 (0)