Back to articles
SDK v0.2.9: Output Verification, Attestations, Preflight and Budgets
How-To

SDK v0.2.9: Output Verification, Attestations, Preflight and Budgets

via Dev.toJoão André Gomes Marques

v0.2.9 is out on PyPI. Four new things, all driven by what people asked for after shipping agents to production: prove the output wasn't swapped, hand a customer a document they can verify themselves, check everything before you run, and stop agents burning through a budget. Install or upgrade: pip install --upgrade asqav Output verification Signing that an action happened is one thing. Proving the output you see now is the same output the agent produced is another. sign_output binds a hash of the result to a hash of the input, then verify_output checks both later. import asqav agent = asqav . Agent . create ( " research-bot " ) query = { " question " : " latest NIST PQC guidance " } result = { " answer " : " FIPS 203, 204, 205 finalized in 2024 " } sig = agent . sign_output ( action_type = " tool:search " , input_hash = asqav . _hash_value ( query ), output = result , ) # Later, or on another machine: check = asqav . verify_output ( sig . signature_id , result ) assert check [ " verif

Continue reading on Dev.to

Opens in a new tab

Read Full Article
5 views

Related Articles