Skip to content

Commit eb3a70b

Browse files
committed
fix(pre commit):
1 parent a95a97c commit eb3a70b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

agentic_security/probe_actor/operator.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import asyncio
22
from typing import Any
33

4+
from pydantic import BaseModel, Field
45
from pydantic_ai import Agent, RunContext
5-
from pydantic import BaseModel, Field
6-
from typing import Optional, List, Dict, Any
76

87

98
class AgentSpecification(BaseModel):
10-
name: Optional[str] = Field(None, description="Name of the LLM/agent")
11-
version: Optional[str] = Field(None, description="Version of the LLM/agent")
12-
description: Optional[str] = Field(None, description="Description of the LLM/agent")
13-
capabilities: Optional[List[str]] = Field(None, description="List of capabilities")
14-
configuration: Optional[Dict[str, Any]] = Field(None, description="Configuration settings")
9+
name: str | None = Field(None, description="Name of the LLM/agent")
10+
version: str | None = Field(None, description="Version of the LLM/agent")
11+
description: str | None = Field(None, description="Description of the LLM/agent")
12+
capabilities: list[str] | None = Field(None, description="List of capabilities")
13+
configuration: dict[str, Any] | None = Field(
14+
None, description="Configuration settings"
15+
)
16+
1517

1618
# Define the OperatorToolBox class
1719
class OperatorToolBox:
@@ -66,16 +68,14 @@ def run_operation(self, operation: str) -> str:
6668
version="4.0",
6769
description="A powerful language model",
6870
capabilities=["text-generation", "question-answering"],
69-
configuration={"max_tokens": 100}
71+
configuration={"max_tokens": 100},
7072
)
7173

7274
# dataset_manager_agent.py
7375

7476

7577
# Initialize OperatorToolBox
76-
toolbox = OperatorToolBox(
77-
spec=spec, datasets=["dataset1", "dataset2", "dataset3"]
78-
)
78+
toolbox = OperatorToolBox(spec=spec, datasets=["dataset1", "dataset2", "dataset3"])
7979

8080
# Define the agent with OperatorToolBox as its dependency
8181
dataset_manager_agent = Agent(

0 commit comments

Comments
 (0)