Skip to main content

agenthub.codeact_agent.action_parser

CodeActResponseParser Objects

class CodeActResponseParser(ResponseParser)

Parser action:

  • CmdRunAction(command) - bash command to run
  • IPythonRunCellAction(code) - IPython code to run
  • AgentDelegateAction(agent, inputs) - delegate action for (sub)task
  • MessageAction(content) - Message action to run (e.g. ask for clarification)
  • AgentFinishAction() - end the interaction

CodeActActionParserFinish Objects

class CodeActActionParserFinish(ActionParser)

Parser action:

  • AgentFinishAction() - end the interaction

CodeActActionParserCmdRun Objects

class CodeActActionParserCmdRun(ActionParser)

Parser action:

  • CmdRunAction(command) - bash command to run
  • AgentFinishAction() - end the interaction

CodeActActionParserIPythonRunCell Objects

class CodeActActionParserIPythonRunCell(ActionParser)

Parser action:

  • IPythonRunCellAction(code) - IPython code to run

CodeActActionParserAgentDelegate Objects

class CodeActActionParserAgentDelegate(ActionParser)

Parser action:

  • AgentDelegateAction(agent, inputs) - delegate action for (sub)task

CodeActActionParserMessage Objects

class CodeActActionParserMessage(ActionParser)

Parser action:

  • MessageAction(content) - Message action to run (e.g. ask for clarification)