MCPcopy Create free account
hub / github.com/THUDM/AgentBench / output_validation

Method output_validation

src/typings/config.py:61–66  ·  view source on GitHub ↗
(cls, v)

Source from the content-addressed store, hash-verified

59
60 @validator("output", pre=True)
61 def output_validation(cls, v):
62 predefined_structure = get_predefined_structure()
63 if v is None:
64 v = "output/{TIMESTAMP}"
65 assert isinstance(v, str), f"'output' must be a string, but got {type(v)}"
66 return v.format(**predefined_structure)
67
68 @classmethod
69 def post_validate(cls, instance: "AssignmentConfig"):

Callers

nothing calls this directly

Calls 1

get_predefined_structureFunction · 0.85

Tested by

no test coverage detected