KvHintAction#

class tensorrt_llm.llmapi.KvHintAction(
*,
action_id: Annotated[str, MinLen(min_length=1)],
action_type: Annotated[str, MinLen(min_length=1)],
action_version: Annotated[str, MinLen(min_length=1)],
payload: dict[str, JsonValue],
**extra_data: Any,
)[source]#

Bases: BaseModel

One producer-versioned action carried without interpreting its payload.

field action_id: str [Required]#

Producer’s action identifier.

Constraints:
  • min_length = 1

field action_type: str [Required]#

Opaque action type, such as kv.fetch.

Constraints:
  • min_length = 1

field action_version: str [Required]#

Producer’s action schema version.

Constraints:
  • min_length = 1

field payload: dict[str, JsonValue] [Required]#

Opaque JSON object owned by the action consumer.

__init__(**data: Any) → None#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.