(self, inputs: Union[str, List[Message]],
**kwargs)
| 7 | class CustomCodeAgent(CodeAgent): |
| 8 | |
| 9 | async def run(self, inputs: Union[str, List[Message]], |
| 10 | **kwargs) -> List[Message]: |
| 11 | print(f'Code executed in {self.tag}!') |
| 12 | if isinstance(inputs, str): |
| 13 | # This example doesn't handle string inputs, so convert to a list of one message |
| 14 | inputs = [Message(role='user', content=inputs)] |
| 15 | inputs.append(Message(role='user', content='Calculate1+1')) |
| 16 | return inputs |
no test coverage detected