langchain/libs/community/tests/unit_tests/chat_models
mackong 70834cd741
community[patch]: support convert FunctionMessage for Tongyi (#23569)
**Description:** For function call agent with Tongyi, cause the
AgentAction will be converted to FunctionMessage by

47f69fe0d8/libs/core/langchain_core/agents.py (L188)
But now Tongyi's *convert_message_to_dict* doesn't support
FunctionMessage

47f69fe0d8/libs/community/langchain_community/chat_models/tongyi.py (L184-L207)
Then next round conversation will be failed by the *TypeError*
exception.

This patch adds the support to convert FunctionMessage for Tongyi.

**Issue:** N/A
**Dependencies:** N/A
2024-06-27 15:49:26 -04:00
..
__init__.py
konko.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_anthropic.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_azureml_endpoint.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_azureopenai.py
test_baichuan.py community[patch]: Update root_validators ChatModels: ChatBaichuan, QianfanChatEndpoint, MiniMaxChat, ChatSparkLLM, ChatZhipuAI (#22853) 2024-06-20 16:36:41 +00:00
test_bedrock.py community[patch]: import flattening fix (#20110) 2024-04-10 13:01:19 -04:00
test_dappier.py
test_edenai.py community[minor]: Add tools calls to ChatEdenAI (#22320) 2024-06-04 10:29:28 -07:00
test_ernie.py
test_fireworks.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_friendli.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_google_palm.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_huggingface.py
test_hunyuan.py
test_imports.py Add OCI Generative AI new model support (#22880) 2024-06-24 14:48:23 -04:00
test_javelin_ai_gateway.py community[patch]: standardize init args, update for javelin sdk release. (#21980) 2024-05-22 21:47:28 +00:00
test_kinetica.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_llama_edge.py patch: remove usage of llm, chat model __call__ (#20788) 2024-04-24 19:39:23 -04:00
test_mlx.py community[minor]: Add support for MLX models (chat & llm) (#18152) 2024-04-09 14:17:07 +00:00
test_oci_generative_ai.py Add OCI Generative AI new model support (#22880) 2024-06-24 14:48:23 -04:00
test_ollama.py community: add standard chat model params to Ollama (#22446) 2024-06-03 17:45:03 -04:00
test_openai.py Standardized openai init params (#21739) 2024-05-16 16:30:52 +00:00
test_perplexity.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_premai.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_snowflake.py community[minor]: add ChatSnowflakeCortex chat model (#21490) 2024-06-17 09:47:05 -07:00
test_tongyi.py community[patch]: support convert FunctionMessage for Tongyi (#23569) 2024-06-27 15:49:26 -04:00
test_yuan2.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
test_zhipuai.py community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00