agenthub.SWE_agent.agent
SWEAgent Objects
class SWEAgent(Agent)
An attempt to recreate swe_agent with output parsing, prompting style, and Application Computer Interface (ACI).
SWE-agent includes ACI functions like 'goto', 'search_for', 'edit', 'scroll', 'run'
step
def step(state: State) -> Action
SWE-Agent step:
- Get context - past actions, custom commands, current step
- Perform think-act - prompt model for action and reasoning
- Catch errors - ensure model takes action (5 attempts max)
reset
def reset() -> None
Used to reset the agent