Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
from datetime import datetime
from typing import Literal

from hackbot_runtime import (
HackbotAgentResult,
Expand All @@ -26,7 +27,14 @@ class AgentInputs(BaseSettings):
bug_id: int | None = None
model: str | None = None
max_turns: int | None = None
effort: str | None = None
effort: (
Literal["low"]
| Literal["medium"]
| Literal["high"]
| Literal["xhigh"]
| Literal["max"]
| None
) = None

model_config = SettingsConfigDict(extra="ignore")

Expand All @@ -42,7 +50,7 @@ async def main(ctx: HackbotContext) -> AutowebcompatResult:
inputs = AgentInputs() # type: ignore

if inputs.bug_data is not None:
input_data = BugDataInput(bug_data=inputs.bug_data)
input_data: BugDataInput | BugIdInput = BugDataInput(bug_data=inputs.bug_data)
elif inputs.bug_id is not None:
input_data = BugIdInput(bug_id=inputs.bug_id)

Expand Down
Loading