Alex Bäuerle cd58194d2a
docs(docs): start implementing docs website (#1372)
* docs(docs): start implementing docs website

* update video url

* add autogenerated codebase docs for backend

* precommit

* update links

* fix config and video

* gh actions

* rename

* workdirs

* path

* path

* fix doc1

* redo markdown

* docs

* change main folder name

* simplify readme

* add back architecture

* Fix lint errors

* lint

* update poetry lock

---------

Co-authored-by: Jim Su <jimsu@protonmail.com>
2024-04-29 10:00:51 -07:00

792 B

sidebar_label, title
sidebar_label title
parser agenthub.SWE_agent.parser

get_action_from_string

def get_action_from_string(command_string: str,
                           path: str,
                           line: int,
                           thoughts: str = '') -> Action | None

Parses the command string to find which command the agent wants to run Converts the command into a proper Action and returns

parse_command

def parse_command(input_str: str, path: str, line: int)

Parses a given string and separates the command (enclosed in triple backticks) from any accompanying text.

Arguments:

  • input_str str - The input string to be parsed.

Returns:

  • tuple - A tuple containing the command and the accompanying text (if any).