File tree Expand file tree Collapse file tree 1 file changed +0
-41
lines changed
tests/contrib/openai_agents Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Original file line number Diff line number Diff 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-
21122071class McpServerModel (StaticTestModel ):
21132072 responses = [
21142073 ResponseBuilders .tool_call (
You can’t perform that action at this time.
0 commit comments