Skip to content

Commit b3b1497

Browse files
committed
Fix ManageEngine typed.py
1 parent 251092a commit b3b1497

File tree

1 file changed

+9
-33
lines changed
  • patchwork/steps/ManageEngineAgent

1 file changed

+9
-33
lines changed
+9-33
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,19 @@
1-
from typing import Dict, Optional, TypedDict
2-
3-
from typing_extensions import Annotated
1+
from typing_extensions import Annotated, Dict, List, Optional, TypedDict
42

53
from patchwork.common.utils.step_typing import StepTypeConfig
64

75

86
class ManageEngineAgentInputs(TypedDict, total=False):
9-
"""
10-
Inputs for the ManageEngine agentic step
11-
"""
12-
13-
# Required inputs
147
me_access_token: str
15-
16-
# Optional configuration
178
max_agent_calls: int
189
openai_api_key: Annotated[
19-
str,
20-
StepTypeConfig(
21-
is_config=True,
22-
or_op=["patched_api_key", "google_api_key", "anthropic_api_key"],
23-
),
10+
str, StepTypeConfig(is_config=True, or_op=["patched_api_key", "google_api_key", "anthropic_api_key"])
2411
]
2512
anthropic_api_key: Annotated[
26-
str,
27-
StepTypeConfig(
28-
is_config=True,
29-
or_op=["patched_api_key", "google_api_key", "openai_api_key"],
30-
),
13+
str, StepTypeConfig(is_config=True, or_op=["patched_api_key", "google_api_key", "openai_api_key"])
3114
]
3215
google_api_key: Annotated[
33-
str,
34-
StepTypeConfig(
35-
is_config=True,
36-
or_op=["patched_api_key", "openai_api_key", "anthropic_api_key"],
37-
),
16+
str, StepTypeConfig(is_config=True, or_op=["patched_api_key", "openai_api_key", "anthropic_api_key"])
3817
]
3918

4019
# Prompt and strategy configuration
@@ -43,11 +22,8 @@ class ManageEngineAgentInputs(TypedDict, total=False):
4322
example_json: Optional[Dict]
4423

4524

46-
class ManageEngineAgentOutputs(TypedDict, total=False):
47-
"""
48-
Outputs from the ManageEngine agentic step
49-
"""
50-
51-
result: Dict
52-
usage: Dict
53-
error: Optional[str]
25+
class ManageEngineAgentOutputs(TypedDict):
26+
conversation_history: List[Dict]
27+
tool_records: List[Dict]
28+
request_tokens: int
29+
response_tokens: int

0 commit comments

Comments
 (0)