()
| 23 | from src.utils import make_file_url |
| 24 | |
| 25 | async def test_message(): |
| 26 | |
| 27 | messages = [ |
| 28 | SystemMessage(content="You are a helpful assistant."), |
| 29 | HumanMessage(content=[ |
| 30 | ContentPartText(text="What are the names of the Pokémon in the image?"), |
| 31 | ContentPartImage(image_url=ImageURL(url=make_file_url(file_path="tests/files/pokemon.jpg"))), |
| 32 | ContentPartAudio(audio_url=AudioURL(url=make_file_url(file_path="tests/files/audio.mp3"))), |
| 33 | ContentPartVideo(video_url=VideoURL(url=make_file_url(file_path="tests/files/video.MOV"))), |
| 34 | ]), |
| 35 | ] |
| 36 | |
| 37 | print(messages) |
| 38 | |
| 39 | if __name__ == "__main__": |
| 40 | asyncio.run(test_message()) |
no test coverage detected