Class SecureDefaultToolPolicy

java.lang.Object
com.agentforge4j.runtime.tool.SecureDefaultToolPolicy
All Implemented Interfaces:
ToolPolicy

public final class SecureDefaultToolPolicy extends Object implements ToolPolicy
Secure-by-default OSS ToolPolicy: allows in-process tools (the embedder's own registered code) and denies remote-network and local-process tools, which require an explicit trust decision (ToolPolicy.allowAll() or a custom policy). The decision is made solely on the framework-trusted ToolSourceKind; it does not consult provider-declared ToolRiskMetadata, which is untrusted advisory metadata and plays no part in this default policy's allow decision.

Dangerous classes are denied, not suspended for approval, so an embedder that has not wired an approval handler is never stranded.

  • Constructor Details

    • SecureDefaultToolPolicy

      public SecureDefaultToolPolicy()
  • Method Details