MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / ConversationMessage

Class ConversationMessage

tensorrt_llm/inputs/utils.py:440–448  ·  view source on GitHub ↗

Type definition for conversation message structure.

Source from the content-addressed store, hash-verified

438
439
440class ConversationMessage(TypedDict):
441 """Type definition for conversation message structure."""
442 role: str
443 content: List[dict[str, Any]]
444 media: List[MultimodalData]
445
446 # @classmethod
447 # def fromSample(cls, sample: dict[str, str]) -> "ConversationMessage":
448 # return cls(role="user", content=[{"type": "text", "text": prompt}])
449
450
451class MultimodalDataTracker:

Callers 3

apply_chat_templateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected