MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / format_payload

Method format_payload

app/api/agentops/api/routes/v3.py:60–63  ·  view source on GitHub ↗

Convert the payload to a dictionary format.

(cls, v)

Source from the content-addressed store, hash-verified

58 @pydantic.field_validator("payload", mode="before")
59 @classmethod
60 def format_payload(cls, v):
61 """Convert the payload to a dictionary format."""
62 assert isinstance(v, JWTPayload)
63 return v.asdict()
64
65
66@router.post("/auth/token")

Callers

nothing calls this directly

Calls 1

asdictMethod · 0.80

Tested by

no test coverage detected