mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-21 13:40:00 +08:00

### What problem does this PR solve? Add sdk for list agents and sessions ### Type of change - [x] New Feature (non-breaking change which adds functionality) Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
9 lines
263 B
Python
9 lines
263 B
Python
from ragflow_sdk import RAGFlow,Agent
|
|
from common import HOST_ADDRESS
|
|
import pytest
|
|
|
|
@pytest.mark.skip(reason="")
|
|
def test_list_agents_with_success(get_api_key_fixture):
|
|
API_KEY=get_api_key_fixture
|
|
rag = RAGFlow(API_KEY,HOST_ADDRESS)
|
|
rag.list_agents() |