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
37 changes: 37 additions & 0 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,18 @@ with no API keys and no outbound network.
agent_id="google-adk-demo-agent",
mode="sdk-only",
) as ctx:
print(f" Agent: {ctx.client.agent_id}")
print(f" Gateway: {ctx.client.gateway_url}")
print(f" Mode: {ctx.network_mode} (offline demo)")
print()

print("Policy rules (local simulation of gateway policy):")
print(" DENY β€” delete_records, write_file (destructive operations)")
print(" PENDING β€” send_email (requires human approval)")
print(" ALLOW β€” everything else")
print()
finally:
ungovern_tool_class(DemoTool)
```

=== "Haystack"
Expand Down Expand Up @@ -362,6 +374,19 @@ with no API keys and no outbound network.
agent_id="microsoft-agent-framework-demo-agent",
mode="sdk-only",
) as ctx:
print(f" Agent: {ctx.client.agent_id}")
print(f" Gateway: {ctx.client.gateway_url}")
print(f" Mode: {ctx.network_mode} (offline demo)")
print()

print("Policy rules (local simulation of gateway policy):")
print(" DENY β€” delete_records, write_file (destructive operations)")
print(" PENDING β€” send_email (requires human approval)")
print(" ALLOW β€” everything else")
print()
finally:
if adapter is not None:
adapter.unregister_hooks()
```

=== "OpenAI Agents SDK"
Expand Down Expand Up @@ -396,6 +421,18 @@ with no API keys and no outbound network.
agent_id="pydantic-ai-demo-agent",
mode="sdk-only",
) as ctx:
print(f" Agent: {ctx.client.agent_id}")
print(f" Gateway: {ctx.client.gateway_url}")
print(f" Mode: {ctx.network_mode} (offline demo)")
print()

print("Policy rules (local simulation of gateway policy):")
print(" DENY β€” delete_records, write_file (destructive operations)")
print(" PENDING β€” send_email (requires human approval)")
print(" ALLOW β€” everything else")
print()
finally:
adapter.unregister_hooks()
```

=== "Semantic Kernel"
Expand Down
12 changes: 12 additions & 0 deletions quickstart_snippets/google-adk.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@
agent_id="google-adk-demo-agent",
mode="sdk-only",
) as ctx:
print(f" Agent: {ctx.client.agent_id}")
print(f" Gateway: {ctx.client.gateway_url}")
print(f" Mode: {ctx.network_mode} (offline demo)")
print()

print("Policy rules (local simulation of gateway policy):")
print(" DENY β€” delete_records, write_file (destructive operations)")
print(" PENDING β€” send_email (requires human approval)")
print(" ALLOW β€” everything else")
print()
finally:
ungovern_tool_class(DemoTool)
13 changes: 13 additions & 0 deletions quickstart_snippets/microsoft-agent-framework-tool-policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,16 @@
agent_id="microsoft-agent-framework-demo-agent",
mode="sdk-only",
) as ctx:
print(f" Agent: {ctx.client.agent_id}")
print(f" Gateway: {ctx.client.gateway_url}")
print(f" Mode: {ctx.network_mode} (offline demo)")
print()

print("Policy rules (local simulation of gateway policy):")
print(" DENY β€” delete_records, write_file (destructive operations)")
print(" PENDING β€” send_email (requires human approval)")
print(" ALLOW β€” everything else")
print()
finally:
if adapter is not None:
adapter.unregister_hooks()
12 changes: 12 additions & 0 deletions quickstart_snippets/pydantic-ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@
agent_id="pydantic-ai-demo-agent",
mode="sdk-only",
) as ctx:
print(f" Agent: {ctx.client.agent_id}")
print(f" Gateway: {ctx.client.gateway_url}")
print(f" Mode: {ctx.network_mode} (offline demo)")
print()

print("Policy rules (local simulation of gateway policy):")
print(" DENY β€” delete_records, write_file (destructive operations)")
print(" PENDING β€” send_email (requires human approval)")
print(" ALLOW β€” everything else")
print()
finally:
adapter.unregister_hooks()