steamship.agents.react package#
Submodules#
steamship.agents.react.output_parser module#
- class steamship.agents.react.output_parser.ReACTOutputParser(*, tools_lookup_dict: Optional[Dict[str, Tool]] = None)[source]#
Bases:
OutputParser
Parse LLM output expecting structure matching ReACTAgent default prompt.
- parse(text: str, context: AgentContext) Action [source]#
Convert text into an Action object.
steamship.agents.react.react module#
Module contents#
- class steamship.agents.react.ReACTAgent(tools: List[Tool], llm: LLM)[source]#
Bases:
LLMAgent
Selects actions for AgentService based on a ReACT style LLM Prompt and a configured set of Tools.
- next_action(context: AgentContext) Action [source]#