agentscope
agentscope copied to clipboard
Add DashScope API based multimodal service functions in AgentScope library
This PR introduces three new services to the service toolkit: dashscope_text_to_image, dashscope_image_to_text, and dashscope_text_to_audio.
also fix a small error in examples/conversation_with_customized_services
The title of this PR isn't quite accurate.
Although it might be a bit of a hassle, please consider adding corresponding tests for the new added service functions.
You may refer to the examples in tests/execute_python_code_test.py
and tests/dashscope_test.py
, utilizing mocks to simulate the return values of the relevant dashscope
libraries. This way, if any bugs arise in the future due to changes in the library, we can quickly pinpoint them.