MCPcopy
hub / github.com/openai/swarm / mock_client.py

File mock_client.py

tests/mock_client.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from unittest.mock import MagicMock
2from swarm.types import ChatCompletionMessage, ChatCompletionMessageToolCall, Function
3from openai import OpenAI
4from openai.types.chat.chat_completion import ChatCompletion, Choice

Callers

nothing calls this directly

Calls 3

MockOpenAIClientClass · 0.85
create_mock_responseFunction · 0.85

Tested by

no test coverage detected