MCPcopy Create free account
hub / github.com/GuDaStudio/GrokSearch / SubQuery

Class SubQuery

src/grok_search/planning.py:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34class SubQuery(BaseModel):
35 id: str = Field(description="Unique identifier (e.g., 'sq1')")
36 goal: str
37 expected_output: str = Field(description="What a successful result looks like")
38 tool_hint: Optional[str] = Field(default=None, description="Suggested tool: web_search | web_fetch | web_map")
39 boundary: str = Field(description="What this sub-query explicitly excludes — MUST state mutual exclusion with sibling sub-queries, not just the broader domain")
40 depends_on: Optional[list[str]] = Field(default=None, description="IDs of prerequisite sub-queries")
41
42
43class SearchTerm(BaseModel):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected