Langchain-Chatchat/server/pydantic_types.py
glide-the 87c912087c 修复glm3 agent被注释的agent会话文本结构解析代码
看起来输出的文本占位符如下,目前解析代码是有问题的
Thought <|assistant|> Action\r
```python
tool_call(action_input)
```<|observation|>
2024-03-07 13:56:07 +08:00

9 lines
274 B
Python

from langchain_core.pydantic_v1 import *
from pydantic.fields import FieldInfo
from pydantic.schema import model_schema
from pydantic.typing import typing
# from pydantic.v1 import *
# from pydantic.v1.fields import FieldInfo
# from pydantic.v1.schema import model_schema