MCPcopy Create free account
hub / github.com/aliyun/data-agent-skill / create_session

Method create_session

scripts/data_agent/client.py:1428–1464  ·  view source on GitHub ↗

Create a new Data Agent session asynchronously. Args: database_id: Optional database ID to bind to the session. title: Session title (required by API). mode: Optional session mode, such as "ASK_DATA", "ANALYSIS", "INSIGHT". enable_search: Whet

(
        self,
        database_id: Optional[str] = None,
        title: str = "data-agent-session",
        mode: Optional[str] = None,
        enable_search: bool = False,
        file_id: Optional[str] = None,  # 添加文件ID参数
        workspace_id: Optional[str] = None,
        custom_agent_id: Optional[str] = None,
        client_token: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

_run_in_executorMethod · 0.95

Tested by

no test coverage detected