MCPcopy
hub / github.com/openai/openai-agents-python / get_function_tool_call

Function get_function_tool_call

tests/test_responses.py:63–79  ·  view source on GitHub ↗
(
    name: str,
    arguments: str | None = None,
    call_id: str | None = None,
    *,
    namespace: str | None = None,
)

Source from the content-addressed store, hash-verified

61
62
63def get_function_tool_call(
64 name: str,
65 arguments: str | None = None,
66 call_id: str | None = None,
67 *,
68 namespace: str | None = None,
69) -> ResponseOutputItem:
70 kwargs: dict[str, Any] = {
71 "id": "1",
72 "call_id": call_id or "2",
73 "type": "function_call",
74 "name": name,
75 "arguments": arguments or "",
76 }
77 if namespace is not None:
78 kwargs["namespace"] = namespace
79 return ResponseFunctionToolCall(**kwargs)
80
81
82def get_handoff_tool_call(

Calls

no outgoing calls

Tested by

no test coverage detected