(cls, id, name, input)
| 45 | return cls(role='tool', content = [ToolResultContentBlock(type='tool_result',id=id, name=name,output=output,is_error=is_error)]) |
| 46 | @classmethod |
| 47 | def tool_use(cls, id, name, input): |
| 48 | return cls(role='assistant', content=[ToolContentBlock(type='tool_use',id=id, name=name, input=input)]) |
| 49 | |
| 50 | class Session(BaseModel): |
| 51 | messages: list[Message] = Field(default_factory=list) |
nothing calls this directly
no test coverage detected