MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / encode

Method encode

crates/node/typed.d.ts:55–55  ·  view source on GitHub ↗

* Encode an annotated request payload back into the JSON shape expected by * the underlying LLM implementation. * * @param annotated - The normalized or annotated JSON payload produced by middleware. * @param original - The original JSON request payload before annotation. * @returns A

(annotated: JsonValue, original: JsonValue)

Source from the content-addressed store, hash-verified

53 * @returns A JSON payload ready to pass to the underlying LLM implementation.
54 */
55 encode(annotated: JsonValue, original: JsonValue): JsonValue;
56}
57
58/**

Callers 15

assert_round_tripFunction · 0.65
_asciiFunction · 0.65
encodeWithCodecFunction · 0.65
encodeWithCodecFunction · 0.65
encodeMethod · 0.65
encodeMethod · 0.65
prepare_llm_requestMethod · 0.65
encodeMethod · 0.65

Implementers 15

LlmCodecpython/nemo_relay/codecs.py
LangChainCodecpython/nemo_relay/integrations/langcha
SimpleCodecpython/tests/test_codecs.py
AlternateCodecpython/tests/test_codecs.py
OpenAICodecpython/tests/test_integration_codecs.p
WasmCodeccrates/wasm/src/callable.rs
OpenAIChatCodeccrates/wasm/src/types/mod.rs
PyLlmCodecWrappercrates/python/src/py_callable.rs
PyOpenAIChatCodeccrates/python/src/py_types/codecs.rs
AnthropicMessagesCodeccrates/core/src/codec/anthropic.rs
OpenAIResponsesCodeccrates/core/src/codec/openai_responses
OpenAIChatCodeccrates/core/src/codec/openai_chat.rs

Calls

no outgoing calls