1
- from typing import Dict , Optional , TypedDict
2
-
3
- from typing_extensions import Annotated
1
+ from typing_extensions import Annotated , Dict , List , Optional , TypedDict
4
2
5
3
from patchwork .common .utils .step_typing import StepTypeConfig
6
4
7
5
8
6
class ManageEngineAgentInputs (TypedDict , total = False ):
9
- """
10
- Inputs for the ManageEngine agentic step
11
- """
12
-
13
- # Required inputs
14
7
me_access_token : str
15
-
16
- # Optional configuration
17
8
max_agent_calls : int
18
9
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" ])
24
11
]
25
12
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" ])
31
14
]
32
15
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" ])
38
17
]
39
18
40
19
# Prompt and strategy configuration
@@ -43,11 +22,8 @@ class ManageEngineAgentInputs(TypedDict, total=False):
43
22
example_json : Optional [Dict ]
44
23
45
24
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