Skip to content

Commit 1be911c

Browse files
CTY-gitwhoisarpit
authored andcommitted
typing fixes
1 parent b6ae0f5 commit 1be911c

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

patchwork/steps/AgenticLLMV2/typed.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,32 @@ class AgenticLLMV2Inputs(TypedDict, total=False):
99
system_prompt: str
1010
user_prompt: str
1111
max_agent_calls: Annotated[int, StepTypeConfig(is_config=True)]
12-
google_api_key: str
13-
anthropic_api_key: str
14-
openai_api_key: str
1512
strategy_model: str
1613
agent_model: str
1714
agent_system_prompt: str
1815
example_json: str
16+
openai_api_key: Annotated[
17+
str,
18+
StepTypeConfig(
19+
is_config=True, or_op=["patched_api_key", "google_api_key", "client_is_gcp", "anthropic_api_key"]
20+
),
21+
]
22+
anthropic_api_key: Annotated[
23+
str,
24+
StepTypeConfig(is_config=True, or_op=["patched_api_key", "google_api_key", "client_is_gcp", "openai_api_key"]),
25+
]
26+
google_api_key: Annotated[
27+
str,
28+
StepTypeConfig(
29+
is_config=True, or_op=["patched_api_key", "openai_api_key", "client_is_gcp", "anthropic_api_key"]
30+
),
31+
]
32+
client_is_gcp: Annotated[
33+
str,
34+
StepTypeConfig(
35+
is_config=True, or_op=["patched_api_key", "openai_api_key", "anthropic_api_key", "google_api_key"]
36+
),
37+
]
1938

2039

2140
class AgenticLLMV2Outputs(TypedDict):

patchwork/steps/GitHubAgent/typed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55

66
class __GitHubAgentRequiredInputs(TypedDict):
7+
github_api_key: str
78
task: str
89

910

1011
class GitHubAgentInputs(__GitHubAgentRequiredInputs, total=False):
1112
base_path: str
1213
prompt_value: Dict[str, Any]
1314
max_llm_calls: Annotated[int, StepTypeConfig(is_config=True)]
14-
github_api_key: str
15-
example_json: Optional[str]
15+
example_json: str
1616
openai_api_key: Annotated[
1717
str,
1818
StepTypeConfig(

0 commit comments

Comments
 (0)