building-pydantic-ai-agents
Pass
Audited by Gen Agent Trust Hub on Oct 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill documents the use of
LocalWorkspaceandCodeExecutionToolfor running shell commands and Python code. It provides clear architectural guidance and explicit security warnings, noting thatLocalWorkspacelacks isolation and is intended only for trusted workloads, and advising against exposing sensitive environment variables to the model. - [EXTERNAL_DOWNLOADS]: The skill references standard Pydantic ecosystem tools, documentation at
pydantic.dev, and official model providers. It includes instructions for setting up observability usinglogfirethrough official CLI tools and package managers. - [INDIRECT_PROMPT_INJECTION]: The skill describes a framework for building agents that ingest untrusted data through prompts, tool results, and enqueued messages.
- Ingestion points: Data enters the agent context via
agent.run()arguments,ToolReturncontent, andctx.enqueue()for mid-run steering. - Boundary markers: The skill mentions provider-native mechanisms like
<system>tags for enqueued instructions to distinguish them from user content. - Capability inventory: The framework supports powerful capabilities including
LocalWorkspacefor shell/file access,CodeExecutionToolfor Python execution, andWebSearchfor network operations. - Sanitization: The skill promotes the use of Pydantic
BaseModelandoutput_typevalidation to ensure structured outputs adhere to a strict schema, and warns users not to execute commands found in telemetry data. - [CREDENTIALS_UNSAFE]: The documentation covers the management of API keys for various providers and the Pydantic AI Gateway. It correctly identifies the risks associated with hardcoding secrets and provides best practices for secure configuration using environment variables and local project directories.
Audit Metadata