MCPcopy Index your code
hub / github.com/SkyworkAI/DeepResearchAgent / test_message

Function test_message

tests/test_message.py:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23from src.utils import make_file_url
24
25async 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
39if __name__ == "__main__":
40 asyncio.run(test_message())

Callers 1

test_message.pyFile · 0.85

Calls 11

SystemMessageClass · 0.90
HumanMessageClass · 0.90
ContentPartTextClass · 0.90
ContentPartImageClass · 0.90
ImageURLClass · 0.90
make_file_urlFunction · 0.90
ContentPartAudioClass · 0.90
AudioURLClass · 0.90
ContentPartVideoClass · 0.90
VideoURLClass · 0.90
printFunction · 0.85

Tested by

no test coverage detected