judgevet.adapters.inbound.mcp_media

Status: draft.

judgevet.adapters.inbound.mcp_media

Decode bounded embedded image evidence on the serialized MCP worker.

Source: https://github.com/Alberto-Codes/judgevet/issues/203#issuecomment-5851508259.

Examples:

from judgevet.adapters.inbound.mcp_media import decode_evidence

assert decode_evidence('{"images":[],"by_question":{}}').images == ()
See Also

decode_evidence(text)

Validate strict JSON and snapshot bounded decoded evidence.

Parameters:

Name Type Description Default
text Any

Embedded JSON string supplied through the MCP tool argument.

required

Returns:

Type Description
ImageEvidence

Immutable ordered image evidence.

Raises:

Type Description
ProviderRequestError

The manifest, encoding or local limits are invalid.