Tencent/WeKnora · error
missing ids
Error message
missing ids
What it means
GetDocumentInfo input guard: both knowledge_ids and faq_ids arrays are empty after parsing, so there is nothing to look up; the tool rejects the call instead of performing an expensive no-op concurrent fetch.
Source
Thrown at internal/agent/tools/get_document_info.go:111
// Execute retrieves document information with concurrent processing
func (t *GetDocumentInfoTool) Execute(ctx context.Context, args json.RawMessage) (*types.ToolResult, error) {
// Parse args from json.RawMessage
var input GetDocumentInfoInput
if err := json.Unmarshal(args, &input); err != nil {
return &types.ToolResult{
Success: false,
Error: fmt.Sprintf("Failed to parse args: %v", err),
}, err
}
knowledgeIDs := input.KnowledgeIDs
faqIDs := input.FAQIDs
if len(knowledgeIDs) == 0 && len(faqIDs) == 0 {
return &types.ToolResult{
Success: false,
Error: "knowledge_ids or faq_ids is required (non-empty array)",
}, fmt.Errorf("missing ids")
}
type docInfo struct {
knowledge *types.Knowledge
chunk *types.Chunk
faqMeta *types.FAQChunkMetadata
chunkCount int
err error
}
var wg sync.WaitGroup
var mu sync.Mutex
results := make(map[string]*docInfo)
enabled := true
for _, faqID := range faqIDs {
faqID = strings.TrimSpace(faqID)
if faqID == "" {View on GitHub (pinned to 988cbb0330)
Solutions
- Provide at least one ID in knowledge_ids or faq_ids
- Skip the tool call entirely when the caller has no IDs
- Reject empty arrays at schema-validation time
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at internal/agent/tools/get_document_info.go:111 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Tencent/WeKnora@988cbb0330 (2026-09-02).
Data as JSON: /api/errors/d07be48f52d69b3b.
Report an issue: GitHub.