mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-15 19:14:01 +08:00
67 lines
1.5 KiB
Python
67 lines
1.5 KiB
Python
"""MoviePilot Agent 宿主策略公共内部入口。"""
|
|
|
|
from app.agent.policy.contracts import (
|
|
ActionEffect,
|
|
ActionPolicy,
|
|
AuthSource,
|
|
ConfirmationMode,
|
|
ExecutionOutcome,
|
|
ExecutionReceipt,
|
|
MigrationState,
|
|
PolicyDecision,
|
|
PolicyObservation,
|
|
PolicyPrincipal,
|
|
PrincipalRole,
|
|
PrincipalType,
|
|
RecoveryMode,
|
|
ResultSensitivity,
|
|
ToolInvocation,
|
|
ToolOrigin,
|
|
ToolPolicyContext,
|
|
)
|
|
from app.agent.policy.orchestrator import (
|
|
DEFAULT_TOOL_POLICY_ORCHESTRATOR,
|
|
AgentToolPolicyOrchestrator,
|
|
call_policy_hook,
|
|
)
|
|
from app.agent.policy.registry import DEFAULT_TOOL_POLICY_REGISTRY, ToolPolicyRegistry
|
|
from app.agent.policy.sanitizer import (
|
|
REDACTED_VALUE,
|
|
sanitize_for_host,
|
|
stable_type_name,
|
|
summarize_error,
|
|
summarize_input,
|
|
summarize_result,
|
|
)
|
|
|
|
__all__ = [
|
|
"ActionEffect",
|
|
"ActionPolicy",
|
|
"AgentToolPolicyOrchestrator",
|
|
"AuthSource",
|
|
"ConfirmationMode",
|
|
"DEFAULT_TOOL_POLICY_ORCHESTRATOR",
|
|
"DEFAULT_TOOL_POLICY_REGISTRY",
|
|
"ExecutionOutcome",
|
|
"ExecutionReceipt",
|
|
"MigrationState",
|
|
"PolicyDecision",
|
|
"PolicyObservation",
|
|
"PolicyPrincipal",
|
|
"PrincipalRole",
|
|
"PrincipalType",
|
|
"REDACTED_VALUE",
|
|
"RecoveryMode",
|
|
"ResultSensitivity",
|
|
"ToolInvocation",
|
|
"ToolOrigin",
|
|
"ToolPolicyContext",
|
|
"ToolPolicyRegistry",
|
|
"call_policy_hook",
|
|
"sanitize_for_host",
|
|
"stable_type_name",
|
|
"summarize_error",
|
|
"summarize_input",
|
|
"summarize_result",
|
|
]
|