Prompt-formatting context for one step
class StepContext(BaseModel): goal: str plan: str observation: str reasoning: str = "" history: list[Step] = [] examples: list[StepExample] = []
context.format_examples() -> str context.format_history() -> str
class StepExample(BaseModel): goal: str plan: str observation: str reasoning: str action: str trajectory_id: str step_index: int