forked from Skull-boy/agent-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.py
More file actions
34 lines (28 loc) · 779 Bytes
/
Copy pathstate.py
File metadata and controls
34 lines (28 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from __future__ import annotations
from typing import Optional
from typing_extensions import TypedDict
class State(TypedDict):
# inputs — set once at invocation, never changed by nodes
issue_number: int
repo_owner: str
repo_name: str
threshold: float
github_token: str
openai_api_key: str
qdrant_url: str
qdrant_collection: str
qdrant_api_key: str
# populated by detect
issue_title: Optional[str]
issue_body: Optional[str]
combined_text: Optional[str]
# populated by judge
vector: Optional[list[float]]
best_score: float
match_number: Optional[int]
match_title: Optional[str]
# populated by act / index
comment_posted: bool
indexed: bool
# execution trace
run_log: list[str]