MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / RunOnlyProfile

Class RunOnlyProfile

tests/test_python_profile_abstractions.py:391–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389
390def test_build_profile_rejects_run_only_profiles() -> None:
391 class RunOnlyProfile:
392 async def run(self, input: ProfileInput) -> ChatResponse:
393 return ChatResponse.openai_completion({
394 "id": "python-profile-run-only",
395 "object": "chat.completion",
396 "model": input.request.model,
397 "choices": [
398 {
399 "index": 0,
400 "message": {"role": "assistant", "content": "ok"},
401 "finish_reason": "stop",
402 }
403 ],
404 })
405
406 @profile_config("unit-python-run-only", register=False)
407 class RunOnlyConfig:

Callers 1

buildMethod · 0.85

Calls

no outgoing calls

Tested by 1

buildMethod · 0.68