EQTY LabDocs

Overview

Every public name in guardian_agent and its framework modules, generated from the SDK's docstrings.

View as Markdown

The reference covers every public name of the Guardian Agent SDK, generated from its docstrings, so it matches the current code. Import the package as guardian_agent; the examples write it ga.

An enrolled agent, described and routed through the local Viper proxy, so that every model request it makes is signed as that agent:

python
from openai import OpenAI

import guardian_agent as ga

guardian = ga.Guardian()  # the proxy's address, from VIPER_PROXY_URL
researcher = guardian.agent(
    "researcher",  # as enrolled with `viper agent add researcher`
    model=ga.Model("openai", "gpt-4.1", temperature=0),
    instructions="You research questions and cite your sources.",
)

client = researcher.bind(OpenAI())  # every request now signed as the researcher
reply = client.chat.completions.create(
    model="gpt-4.1",
    temperature=0,
    messages=[{"role": "user", "content": "What changed in the last release?"}],
)
print(reply.choices[0].message.content)
PageWhat it covers
Guardian and AgentGuardian, the connection to the local Viper proxy, and Agent, an enrolled agent you route model clients through
DefinitionDefinition, what an agent is, with SubAgent and Problem
Models and promptsModel, Reasoning and Thinking; the System and Developer prompts
ToolsTool, the @tool decorator, and McpServer
Skills and memorySkill and Memory
Framework and codeFramework, Middleware, Graph and Source
CapabilitiesCapabilities and Limits, what a proxy supports
Errorsguardian_agent.errors, every error the SDK raises, and proxy_error
LangChainguardian_agent.langchain: create_agent and agent_of
LangGraphguardian_agent.langgraph: describe_graph
Deep Agentsguardian_agent.deepagents: create_deep_agent
Testingguardian_agent.testing: FakeProxy and FakeRequest