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

Method asdict

app/api/agentops/api/auth.py:40–53  ·  view source on GitHub ↗

Convert the payload to a dictionary format.

(self)

Source from the content-addressed store, hash-verified

38 dev: bool = False
39
40 def asdict(self) -> dict:
41 """Convert the payload to a dictionary format."""
42 properties = {
43 "exp": self.exp,
44 "aud": self.aud,
45 "project_id": self.project_id,
46 "project_prem_status": self.project_prem_status,
47 "api_key": self.api_key,
48 }
49
50 if self.dev:
51 properties["dev"] = self.dev
52
53 return properties
54
55 @classmethod
56 def from_project(cls, project: ProjectModel, dev: bool = False) -> "JWTPayload":

Callers 11

generate_dev_tokenFunction · 0.95
generate_jwtFunction · 0.80
format_payloadMethod · 0.80
valid_jwtFunction · 0.80
expired_jwtFunction · 0.80
test_verify_jwt_validMethod · 0.80

Calls

no outgoing calls

Tested by 8

valid_jwtFunction · 0.64
expired_jwtFunction · 0.64
test_verify_jwt_validMethod · 0.64