Skip to main content

Crate punch_types

Crate punch_types 

Source

Re-exports§

pub use a2a::A2AAuth;
pub use a2a::A2AClient;
pub use a2a::A2AMessage;
pub use a2a::A2ARegistry;
pub use a2a::A2ATask;
pub use a2a::A2ATaskInput;
pub use a2a::A2ATaskOutput;
pub use a2a::A2ATaskStatus;
pub use a2a::AgentCard;
pub use a2a::HttpA2AClient;
pub use approval::ApprovalDecision;
pub use approval::ApprovalHandler;
pub use approval::ApprovalPolicy;
pub use approval::ApprovalRequest;
pub use approval::AutoApproveHandler;
pub use approval::DenyAllHandler;
pub use approval::PolicyEngine;
pub use approval::RiskLevel;
pub use audit::AuditAction;
pub use audit::AuditEntry;
pub use audit::AuditLog;
pub use audit::AuditVerifyError;
pub use browser::BrowserAction;
pub use browser::BrowserConfig;
pub use browser::BrowserDriver;
pub use browser::BrowserPool;
pub use browser::BrowserResult;
pub use browser::BrowserSession;
pub use browser::BrowserState;
pub use capability::Capability;
pub use capability::CapabilityGrant;
pub use cdp::CdpBrowserDriver;
pub use cdp::CdpCommand;
pub use cdp::CdpConfig;
pub use cdp::CdpError;
pub use cdp::CdpResponse;
pub use cdp::CdpSession;
pub use cdp::CdpTargetInfo;
pub use cdp::build_click_command;
pub use cdp::build_evaluate_command;
pub use cdp::build_get_content_command;
pub use cdp::build_get_html_command;
pub use cdp::build_navigate_command;
pub use cdp::build_screenshot_command;
pub use cdp::build_type_text_command;
pub use cdp::build_wait_for_selector_command;
pub use cdp::chrome_candidate_paths;
pub use cdp::find_chrome;
pub use config::ModelConfig;
pub use config::Provider;
pub use config::PunchConfig;
pub use coordinator::AgentCoordinator;
pub use coordinator::AgentInfo;
pub use coordinator::AgentMessageResult;
pub use creed::Creed;
pub use creed::CreedId;
pub use creed::DelegationRule;
pub use creed::HeartbeatTask;
pub use creed::InteractionStyle;
pub use creed::LearnedBehavior;
pub use creed::Relationship;
pub use creed::SelfModel;
pub use error::PunchError;
pub use error::PunchResult;
pub use event::EventPayload;
pub use event::PunchEvent;
pub use fighter::FighterId;
pub use fighter::FighterManifest;
pub use fighter::FighterStats;
pub use fighter::FighterStatus;
pub use fighter::WeightClass;
pub use gorilla::GorillaId;
pub use gorilla::GorillaManifest;
pub use gorilla::GorillaMetrics;
pub use gorilla::GorillaStatus;
pub use gorilla::capabilities_from_move;
pub use hot_reload::ConfigChange;
pub use hot_reload::ConfigChangeSet;
pub use hot_reload::ConfigValidationError;
pub use hot_reload::ConfigWatcher;
pub use hot_reload::ValidationSeverity;
pub use hot_reload::diff_configs;
pub use hot_reload::validate_config;
pub use image_gen::ImageFormat;
pub use image_gen::ImageGenRequest;
pub use image_gen::ImageGenResult;
pub use image_gen::ImageGenerator;
pub use image_gen::ImageStyle;
pub use link::LinkContent;
pub use link::LinkContentType;
pub use link::LinkExtractor;
pub use link::LinkMetadata;
pub use media::AudioMimeType;
pub use media::ImageMimeType;
pub use media::MediaAnalysis;
pub use media::MediaAnalyzer;
pub use media::MediaInput;
pub use media::MediaType;
pub use message::Message;
pub use message::Role;
pub use message::ToolCall;
pub use message::ToolCallResult;
pub use model_catalog::ModelCapability;
pub use model_catalog::ModelCatalog;
pub use model_catalog::ModelInfo;
pub use model_catalog::ModelPricing;
pub use model_catalog::ModelRequirements;
pub use model_catalog::ModelUsageStats;
pub use patch::ConflictType;
pub use patch::FilePatch;
pub use patch::PatchConflict;
pub use patch::PatchHunk;
pub use patch::PatchLine;
pub use patch::PatchSet;
pub use patch::apply_patch;
pub use patch::apply_patch_fuzzy;
pub use patch::generate_unified_diff;
pub use patch::parse_unified_diff;
pub use patch::reverse_patch;
pub use patch::validate_patch;
pub use prompt_guard::InjectionAlert;
pub use prompt_guard::InjectionPattern;
pub use prompt_guard::InjectionSeverity;
pub use prompt_guard::PromptGuard;
pub use prompt_guard::PromptGuardConfig;
pub use prompt_guard::PromptGuardResult;
pub use prompt_guard::RecommendedAction;
pub use prompt_guard::ScanDecision;
pub use prompt_guard::ThreatLevel;
pub use provider_health::CircuitBreakerConfig;
pub use provider_health::HealthStatus;
pub use provider_health::ProviderHealth;
pub use provider_health::ProviderHealthMonitor;
pub use reply::ReplyDirective;
pub use reply::ReplyFormat;
pub use reply::ReplyTone;
pub use reply::apply_directive;
pub use sandbox::SandboxConfig;
pub use sandbox::SandboxEnforcer;
pub use sandbox::SandboxViolation;
pub use secret_store::EnvSecretProvider;
pub use secret_store::FileSecretProvider;
pub use secret_store::Secret;
pub use secret_store::SecretProvider;
pub use secret_store::SecretProviderError;
pub use secret_store::SecretStore;
pub use secret_store::SecretString;
pub use secret_store::mask_secret;
pub use signing::SignedManifest;
pub use signing::SigningError;
pub use signing::SigningKeyPair;
pub use signing::generate_keypair;
pub use signing::sign_and_wrap;
pub use signing::sign_manifest;
pub use signing::verify_manifest;
pub use signing::verify_signed_manifest;
pub use signing::verifying_key_from_hex;
pub use ssrf::SsrfProtector;
pub use ssrf::SsrfViolation;
pub use taint::Sensitivity;
pub use taint::ShellBleedDetector;
pub use taint::ShellBleedWarning;
pub use taint::TaintLabel;
pub use taint::TaintSource;
pub use taint::TaintTracker;
pub use tenant::Tenant;
pub use tenant::TenantId;
pub use tenant::TenantQuota;
pub use tenant::TenantStatus;
pub use tool::ToolCategory;
pub use tool::ToolDefinition;
pub use tool::ToolResult;
pub use tool_policy::PolicyCondition;
pub use tool_policy::PolicyDecision;
pub use tool_policy::PolicyEffect;
pub use tool_policy::PolicyRule;
pub use tool_policy::PolicyScope;
pub use tool_policy::ToolPolicyEngine;
pub use troop::AgentMessage;
pub use troop::AgentMessageType;
pub use troop::AuctionBid;
pub use troop::CoordinationStrategy;
pub use troop::MessageChannel;
pub use troop::MessagePriority;
pub use troop::RestartStrategy;
pub use troop::SelectionCriteria;
pub use troop::SubtaskStatus;
pub use troop::SwarmSubtask;
pub use troop::SwarmTask;
pub use troop::Troop;
pub use troop::TroopId;
pub use troop::TroopStatus;
pub use workspace::ActiveFile;
pub use workspace::ChangeType;
pub use workspace::FileChange;
pub use workspace::GitInfo;
pub use workspace::ProjectType;
pub use workspace::WorkspaceContext;

Modules§

a2a
Agent-to-Agent (A2A) Protocol
approval
Policy-based tool gating — the referee system.
audit
Tamper-evident audit log for the Punch Agent Combat System.
browser
Browser automation types — ring-side view into the web.
capability
cdp
Chrome DevTools Protocol (CDP) browser driver — the real steel behind browser automation.
config
coordinator
Agent coordination trait for inter-agent messaging.
creed
error
event
fighter
gorilla
hot_reload
Hot Config Reload — corner team adjustments between rounds.
image_gen
Image Generation — forging visual strikes from text commands.
link
Link Understanding — scouting enemy territory by extracting intel from URLs.
media
Media Understanding — analyzing the battlefield’s sights and sounds.
message
model_catalog
Model Catalog — The Fighter Roster
patch
Patch application engine — combo patches and move corrections.
prompt_guard
Prompt injection detection — the ref that catches dirty moves.
provider_health
Provider health monitoring and circuit breaker failover.
reply
Reply Directives — the battle stance for formatting and delivering responses.
sandbox
Subprocess sandbox — the containment ring for agent-spawned processes.
secret_store
Secret management with zeroization — keeps secrets locked in the vault.
signing
Ed25519 manifest signing and verification.
ssrf
SSRF (Server-Side Request Forgery) protection engine.
taint
Taint tracking and shell bleed detection.
tenant
tool
tool_policy
Tool Policy Engine — the ring regulations for move control.
troop
Troop Types
workspace
Workspace Context — mapping the battlefield before the fight begins.