datarobot_genai.drmcp.test_utils.mcp_utils_ete
mcp_utils_ete
get_dr_mcp_server_url
get_dr_mcp_server_http_url
get_openai_llm_client_config
Get OpenAI LLM client configuration.
Source code in datarobot_genai/drmcp/test_utils/mcp_utils_ete.py
get_dr_llm_gateway_client_config
Get DataRobot LLM Gateway client configuration.
Source code in datarobot_genai/drmcp/test_utils/mcp_utils_ete.py
ete_test_mcp_session
async
ete_test_mcp_session(additional_headers: dict[str, str] | None = None, elicitation_callback: Any | None = None) -> AsyncGenerator[ClientSession, None]
Create an MCP session for each test.
Parameters
additional_headers : dict[str, str], optional Additional headers to include in the MCP session (e.g., auth headers for testing). elicitation_callback : callable, optional Callback function to handle elicitation requests from the server. The callback should have signature: async def callback(context, params: ElicitRequestParams) -> ElicitResult
Source code in datarobot_genai/drmcp/test_utils/mcp_utils_ete.py
ete_test_http_session
async
ete_test_http_session(additional_headers: dict[str, str] | None = None) -> AsyncGenerator[HttpClientSession, None]
Create an HTTP session for each test that can connect to MCP custom http routes.
Parameters
additional_headers : dict[str, str], optional Additional headers to include in the HTTP session (e.g., auth headers for testing).