Drop list_documents from analysis skill
This commit is contained in:
parent
68388032be
commit
e51841b924
3 changed files with 2 additions and 5 deletions
|
|
@ -77,7 +77,7 @@ def create_skill(
|
|||
db_path,
|
||||
config,
|
||||
AnalysisState,
|
||||
["search", "list_documents", "execute_code", "cite"],
|
||||
["search", "execute_code", "cite"],
|
||||
)
|
||||
extras = create_skill_extras(db_path, config)
|
||||
|
||||
|
|
|
|||
|
|
@ -27,9 +27,6 @@ Not supported: class definitions, generators/yield, match statements, decorators
|
|||
### search
|
||||
Search the knowledge base directly (outside code execution). Use for initial exploration before writing code. Each result has a `Type:` (paragraph, table, code, list_item, picture). When the Type is `picture`, the corresponding figure may also be attached to the tool response as an image alongside the text — use it directly to answer questions about figures, diagrams, charts, screenshots.
|
||||
|
||||
### list_documents
|
||||
List available documents. Use to discover what's in the knowledge base.
|
||||
|
||||
### cite
|
||||
Register the chunk IDs that ground your answer. Call this BEFORE writing your final answer, with the `chunk_id` values from search results (from either the `search` tool or `await search(...)` inside `execute_code`) that support each claim. Every answer that uses search results must be backed by `cite`.
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class TestAnalysisSkillCreation:
|
|||
|
||||
skill = create_skill(config=test_app_config, db_path=temp_db_path)
|
||||
tool_names = {getattr(t, "__name__") for t in skill.tools if callable(t)}
|
||||
assert tool_names == {"search", "list_documents", "execute_code", "cite"}
|
||||
assert tool_names == {"search", "execute_code", "cite"}
|
||||
|
||||
def test_create_skill_has_state(self, test_app_config, temp_db_path):
|
||||
from haiku.rag.skills.analysis import AnalysisState, create_skill
|
||||
|
|
|
|||
Loading…
Reference in a new issue