Coverage report: 94%

Files Functions Classes

coverage.py v7.13.1, created at 2026-04-02 08:51 +0000

      Statements   Branches   Total
File function   coverage statements missing excluded   coverage branches partial   coverage
stackone_ai / constants.py (no function)   100% 2 0 0   100% 0 0   100%
stackone_ai / feedback / __init__.py (no function)   100% 2 0 0   100% 0 0   100%
stackone_ai / feedback / tool.py FeedbackInput.validate_feedback   100% 4 0 0   100% 2 0   100%
stackone_ai / feedback / tool.py FeedbackInput.validate_account_id   92% 13 1 0   90% 10 1   91%
stackone_ai / feedback / tool.py FeedbackInput.validate_tool_names   100% 4 0 0   100% 2 0   100%
stackone_ai / feedback / tool.py FeedbackTool.execute   97% 31 1 0   88% 8 1   95%
stackone_ai / feedback / tool.py create_feedback_tool   100% 7 0 0   100% 0 0   100%
stackone_ai / feedback / tool.py (no function)   100% 21 0 0   100% 0 0   100%
stackone_ai / integrations / __init__.py (no function)   100% 2 0 0   100% 0 0   100%
stackone_ai / integrations / langgraph.py _ensure_langgraph   100% 2 0 2   100% 0 0   100%
stackone_ai / integrations / langgraph.py _to_langchain_tools   100% 3 0 0   100% 2 0   100%
stackone_ai / integrations / langgraph.py to_tool_node   100% 4 0 0   100% 0 0   100%
stackone_ai / integrations / langgraph.py to_tool_executor   100% 4 0 0   100% 0 0   100%
stackone_ai / integrations / langgraph.py bind_model_with_tools   100% 2 0 0   100% 0 0   100%
stackone_ai / integrations / langgraph.py create_react_agent   100% 3 0 0   100% 0 0   100%
stackone_ai / integrations / langgraph.py (no function)   100% 11 0 0   100% 0 0   100%
stackone_ai / local_search.py ToolIndex.__init__   100% 24 0 0   67% 6 2   93%
stackone_ai / local_search.py ToolIndex.search   91% 34 3 0   83% 18 3   88%
stackone_ai / local_search.py (no function)   100% 14 0 0   100% 0 0   100%
stackone_ai / models.py StackOneAPIError.__init__   100% 3 0 0   100% 0 0   100%
stackone_ai / models.py validate_method   100% 4 0 0   100% 2 0   100%
stackone_ai / models.py StackOneTool.connector   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py StackOneTool.__init__   100% 4 0 0   100% 0 0   100%
stackone_ai / models.py StackOneTool._split_feedback_options   100% 6 0 0   100% 4 0   100%
stackone_ai / models.py StackOneTool._prepare_headers   100% 6 0 0   100% 2 0   100%
stackone_ai / models.py StackOneTool._prepare_request_params   100% 19 0 0   100% 12 0   100%
stackone_ai / models.py StackOneTool.execute   96% 57 2 0   81% 16 3   93%
stackone_ai / models.py StackOneTool.call   100% 7 0 0   100% 6 0   100%
stackone_ai / models.py StackOneTool.__call__   0% 1 1 0   100% 0 0   0%
stackone_ai / models.py StackOneTool.to_openai_function   100% 25 0 0   90% 20 2   96%
stackone_ai / models.py StackOneTool.to_langchain   97% 35 1 0   94% 18 1   96%
stackone_ai / models.py StackOneTool.to_langchain.StackOneLangChainTool._run   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py StackOneTool.set_account_id   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py StackOneTool.get_account_id   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py Tools.__init__   100% 2 0 0   100% 0 0   100%
stackone_ai / models.py Tools.__getitem__   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py Tools.__len__   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py Tools.__iter__   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py Tools.to_list   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py Tools.get_tool   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py Tools.set_account_id   100% 2 0 0   100% 2 0   100%
stackone_ai / models.py Tools.get_account_id   100% 5 0 0   100% 4 0   100%
stackone_ai / models.py Tools.get_connectors   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py Tools.to_openai   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py Tools.to_langchain   100% 1 0 0   100% 0 0   100%
stackone_ai / models.py (no function)   100% 74 0 0   100% 0 0   100%
stackone_ai / semantic_search.py SemanticSearchClient.__init__   100% 3 0 0   100% 0 0   100%
stackone_ai / semantic_search.py SemanticSearchClient._build_auth_header   100% 2 0 0   100% 0 0   100%
stackone_ai / semantic_search.py SemanticSearchClient.search   86% 22 3 0   88% 8 1   87%
stackone_ai / semantic_search.py SemanticSearchClient.search_action_names   100% 2 0 0   100% 0 0   100%
stackone_ai / semantic_search.py (no function)   100% 22 0 0   100% 0 0   100%
stackone_ai / toolset.py _SearchInput.validate_query   75% 4 1 0   50% 2 1   67%
stackone_ai / toolset.py _SearchTool.execute   100% 10 0 0   100% 2 0   100%
stackone_ai / toolset.py _ExecuteInput.validate_tool_name   75% 4 1 0   50% 2 1   67%
stackone_ai / toolset.py _ExecuteTool.execute   100% 17 0 0   100% 6 0   100%
stackone_ai / toolset.py _create_search_tool   100% 7 0 0   100% 0 0   100%
stackone_ai / toolset.py _create_execute_tool   100% 7 0 0   100% 0 0   100%
stackone_ai / toolset.py _run_async   100% 13 0 0   100% 2 0   100%
stackone_ai / toolset.py _run_async.runner   100% 2 0 2   100% 0 0   100%
stackone_ai / toolset.py _build_auth_header   100% 2 0 0   100% 0 0   100%
stackone_ai / toolset.py _fetch_mcp_tools   100% 6 0 2   100% 0 0   100%
stackone_ai / toolset.py _fetch_mcp_tools._list   100% 15 0 0   100% 4 0   100%
stackone_ai / toolset.py _StackOneRpcTool.__init__   100% 2 0 0   100% 0 0   100%
stackone_ai / toolset.py _StackOneRpcTool.execute   100% 14 0 0   100% 6 0   100%
stackone_ai / toolset.py _StackOneRpcTool._parse_arguments   100% 8 0 0   100% 6 0   100%
stackone_ai / toolset.py _StackOneRpcTool._extract_record   100% 3 0 0   100% 2 0   100%
stackone_ai / toolset.py _StackOneRpcTool._build_action_headers   100% 11 0 0   100% 8 0   100%
stackone_ai / toolset.py SearchTool.__init__   100% 2 0 0   100% 0 0   100%
stackone_ai / toolset.py SearchTool.__call__   100% 4 0 0   100% 0 0   100%
stackone_ai / toolset.py StackOneToolSet.__init__   100% 11 0 0   100% 2 0   100%
stackone_ai / toolset.py StackOneToolSet.set_accounts   100% 2 0 0   100% 0 0   100%
stackone_ai / toolset.py StackOneToolSet.get_search_tool   83% 6 1 0   50% 4 2   70%
stackone_ai / toolset.py StackOneToolSet._build_tools   0% 9 9 0   0% 4 0   0%
stackone_ai / toolset.py StackOneToolSet.openai   100% 4 0 0   100% 2 0   100%
stackone_ai / toolset.py StackOneToolSet.langchain   100% 4 0 0   100% 2 0   100%
stackone_ai / toolset.py StackOneToolSet.execute   100% 6 0 0   100% 4 0   100%
stackone_ai / toolset.py StackOneToolSet.semantic_client   100% 3 0 0   100% 2 0   100%
stackone_ai / toolset.py StackOneToolSet._local_search   91% 11 1 0   50% 2 1   85%
stackone_ai / toolset.py StackOneToolSet.search_tools   91% 57 5 0   79% 28 6   87%
stackone_ai / toolset.py StackOneToolSet.search_tools._search_one   100% 2 0 0   100% 0 0   100%
stackone_ai / toolset.py StackOneToolSet.search_action_names   90% 31 3 0   71% 14 4   84%
stackone_ai / toolset.py StackOneToolSet.search_action_names._search_one   60% 5 2 0   100% 0 0   60%
stackone_ai / toolset.py StackOneToolSet._filter_by_provider   100% 3 0 0   100% 0 0   100%
stackone_ai / toolset.py StackOneToolSet._filter_by_action   100% 1 0 0   100% 0 0   100%
stackone_ai / toolset.py StackOneToolSet.fetch_tools   100% 21 0 2   100% 12 0   100%
stackone_ai / toolset.py StackOneToolSet._build_mcp_headers   100% 4 0 0   100% 2 0   100%
stackone_ai / toolset.py StackOneToolSet._create_rpc_tool   100% 3 0 0   100% 0 0   100%
stackone_ai / toolset.py StackOneToolSet._normalize_schema_properties   100% 14 0 0   100% 8 0   100%
stackone_ai / toolset.py (no function)   100% 101 0 2   100% 0 0   100%
stackone_ai / utils / __init__.py (no function)   100% 0 0 0   100% 0 0   100%
stackone_ai / utils / normalize.py _normalize_action_name   100% 2 0 0   100% 0 0   100%
stackone_ai / utils / normalize.py (no function)   100% 4 0 0   100% 0 0   100%
stackone_ai / utils / tfidf_index.py tokenize   100% 4 0 0   100% 0 0   100%
stackone_ai / utils / tfidf_index.py TfidfIndex.__init__   100% 3 0 0   100% 0 0   100%
stackone_ai / utils / tfidf_index.py TfidfIndex.build   97% 39 1 0   88% 26 3   94%
stackone_ai / utils / tfidf_index.py TfidfIndex.search   95% 43 2 0   85% 26 4   91%
stackone_ai / utils / tfidf_index.py (no function)   100% 16 0 0   100% 0 0   100%
Total     96% 1040 38 10   88% 320 36   94%

No items found using the specified filter.