Skip to content

Prismer-AI/signet-openai-agents-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Signet + OpenAI Agents SDK Example

Add cryptographic signing to every tool call in the OpenAI Agents SDK.

Install

pip install signet-auth openai-agents

Quick Start

from agents import Agent, Runner, function_tool
from signet_auth import SigningAgent
from signet_auth.openai_agents import SignetTracingProcessor

signer = SigningAgent.create("openai-bot", owner="team")

@function_tool
def get_weather(city: str) -> str:
    return f"Sunny in {city}"

agent = Agent(name="assistant", tools=[get_weather])

# Add Signet tracing — every tool call is signed
with Runner.run(agent, input="Weather in Tokyo?") as result:
    processor = SignetTracingProcessor(signer)
    processor.process(result)
    print(result.final_output)

Verify

signet audit --since 1h
signet audit --verify

Links

About

Working example: Signet cryptographic signing for openai agents agents

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages