Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion agentscore/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Literal, TypedDict

Grade = Literal["A", "B", "C", "D", "F"]
EntityType = Literal["agent", "service", "hybrid", "wallet", "bot", "unknown"]
EntityType = Literal["agent", "service", "hybrid", "wallet", "bot", "unknown", "individual", "entity"]
ReputationStatus = Literal["scored", "stale", "known_unscored"]
VerificationLevel = Literal["none", "wallet_claimed", "kyc_verified"]

Expand Down Expand Up @@ -146,6 +146,18 @@ class OperatorVerification(_OperatorVerificationRequired, total=False):
verified_at: str | None


class PolicyCheck(TypedDict, total=False):
rule: str
passed: bool
required: object
actual: object


class PolicyResult(TypedDict):
all_passed: bool
checks: list[PolicyCheck]


class DecisionPolicy(TypedDict, total=False):
min_grade: Grade
min_score: int
Expand Down Expand Up @@ -176,3 +188,4 @@ class AssessResponse(_AssessResponseRequired, total=False):
operator_verification: OperatorVerification
resolved_operator: str
verify_url: str
policy_result: PolicyResult | None
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "agentscore-py"
version = "1.4.0"
version = "1.4.1"
description = "Python client for the AgentScore trust and reputation API"
readme = "README.md"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading