Skip to content

Commit d55009c

Browse files
committed
fix tests for removing useless
1 parent 21a80f5 commit d55009c

File tree

3 files changed

+0
-45
lines changed

3 files changed

+0
-45
lines changed

docs/docs/agent.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Agent 中主要包括如下属性:
2121
| knowledgebase | KnowledgeBase | 知识库,后端支持本地内存(local)和数据库(opensearch、viking、redis、mysql),通常设置为一个能够检索的向量数据库 |
2222
| long_term_memory | LongTermMemory | 长期记忆,后端支持本地内存(local)和数据库(opensearch、viking、redis、mysql),通常设置为一个能够检索的向量数据库 |
2323
| tracers | list | 追踪器列表,能够定义不同的追踪方式,并在 Agent 执行完毕后将整体 Tracing 信息保存至本地 |
24-
| serve_url | str | Agent 服务主机的 URL,将显示在 Agent Card 中 |
2524

2625
您可以在[火山引擎方舟平台](https://www.volcengine.com/product/ark)选择适合您的大模型。
2726

tests/test_agent.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def test_agent():
5353
knowledgebase=knowledgebase,
5454
long_term_memory=long_term_memory,
5555
tracers=[tracer],
56-
serve_url="",
5756
)
5857

5958
assert agent.model.model == f"{agent.model_provider}/{agent.model_name}" # type: ignore
@@ -89,8 +88,6 @@ def test_agent_default_values():
8988
assert agent.long_term_memory is None
9089
assert agent.tracers == []
9190

92-
assert agent.serve_url == ""
93-
9491

9592
@patch.dict("os.environ", {"MODEL_AGENT_API_KEY": "mock_api_key"})
9693
def test_agent_without_knowledgebase():
@@ -208,11 +205,3 @@ def test_agent_custom_name_and_description():
208205

209206
assert agent.name == custom_name
210207
assert agent.description == custom_description
211-
212-
213-
@patch.dict("os.environ", {"MODEL_AGENT_API_KEY": "mock_api_key"})
214-
def test_agent_serve_url():
215-
serve_url = "http://localhost:8080"
216-
agent = Agent(serve_url=serve_url)
217-
218-
assert agent.serve_url == serve_url

tests/test_agent_card.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)