| 19 | ) |
| 20 | # Define State and Graph |
| 21 | class CodeState(TypedDict): |
| 22 | messages: Annotated[list, add_messages] |
| 23 | code: str |
| 24 | error: str |
| 25 | iterations: int |
| 26 | thread_id: str |
| 27 | checkpoint_namespace: str |
| 28 | state_checkpoint_id: str |
| 29 | previous_response: str # tracking for previous response |
| 30 | |
| 31 | |
| 32 | def generate(state: CodeState): |
nothing calls this directly
no outgoing calls
no test coverage detected