Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

622 B
Raw Blame
package tools

// CanRunConcurrently is an explicit allowlist of built-in reads. Mutations,
// arbitrary code, and unknown/MCP tools form execution barriers. In particular,
// a file write must finish before the next shell or skill call starts.
func CanRunConcurrently(name string) bool {
	switch name {
	case ToolSearchKnowledge, ToolReadDocument, ToolListDocuments,
		ToolQueryKnowledgeGraph, ToolSearchConversations,
		ToolSearchMemory, ToolDataSchema, ToolWebSearch, ToolWebFetch,
		ToolReadFile, ToolListSandboxFiles,
		ToolWikiSearch, ToolWikiReadPage, ToolWikiReadIssue:
		return true
	default:
		return false
	}
}