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

Function _target

tests/test_switchyard_rust_component_bindings.py:33–44  ·  view source on GitHub ↗
(
    target_id: str,
    model: str,
    *,
    format: object = BackendFormat.OPENAI,
)

Source from the content-addressed store, hash-verified

31
32
33def _target(
34 target_id: str,
35 model: str,
36 *,
37 format: object = BackendFormat.OPENAI,
38) -> LlmTarget:
39 return LlmTarget(
40 target_id,
41 model,
42 format=format,
43 endpoint=EndpointConfig(base_url="https://example.test/v1", api_key="test-key"),
44 )
45
46
47def test_component_exports_are_callable_processors_and_native_backends() -> None:

Calls 2

LlmTargetClass · 0.90
EndpointConfigClass · 0.85

Tested by

no test coverage detected