[Feature] Agents package#33
Merged
Merged
Conversation
…feature/agents Resolved conflicts in client/index.ts, toolpack.ts, and index.ts by combining enrichRequestWithTools() return type refactor (EnrichedRequestResult) from feature/agents with enforceContextWindow() calls from PR toolpack-ai#32.
- Remove empty src/conversation-history/ directory (caused ESLint glob to fail with "no files matching pattern") - Change let → const for result in base-agent.ts and results in mock-knowledge.ts (prefer-const errors)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduces
@toolpack-sdk/agents— a new package for building production-ready AI agents with channels, interceptors, conversation history, and multi-agent coordination. This is the first release of the agents package (v1.4.0) alongside updates totoolpack-sdkand@toolpack-sdk/knowledge.What's included:
@toolpack-sdk/agents(new package)BaseAgentabstract class — interceptor chain, conversation history assembly, lifecycle hooks, LLM invocation viarun(), human-in-the-loop viaask()/getPendingAsk()/handlePendingAsk()AgentRegistry— multi-agent orchestration with local and JSON-RPC transportIntentClassifierAgent,SummarizerAgentInMemoryConversationStore,assemblePrompt(),createConversationSearchTool()LocalTransportandJsonRpcTransportfor in-process and cross-process agent delegationAgentRegistry(npm registry search/publish) via@toolpack-sdk/agents/registry/interceptors,/channels,/testing,/registry,/capabilitiesScriptedLLMtest helper for integration testing without live API callstoolpack-sdkupdatesgithub-tools(9 tools: PR diff, PR files list, PR review threads, review comments, review submit)k8s-tools(11 tools)enrichRequestWithTools()refactored to returnEnrichedRequestResultwith.requestand.requestToolMapto support per-agent tool scopingstripRequestTools()added toAIClientfor re-enrichment on follow-up rounds@toolpack-sdk/knowledgeupdatesJSONSource,SQLiteSource,PostgresSource,OpenRouterEmbedderdocumentation; added missingOllamaEmbedderoptions (retries,retryDelay,dimensions); addedWebUrlSourcesafety options (sameDomainOnly,maxPagesPerDomain)scripts/update-version.jstoolpack-sdk,@toolpack-sdk/knowledge,@toolpack-sdk/agents)Type of change
How Has This Been Tested?
npm run test— 780 tests passing intoolpack-sdk, 573 tests passing in@toolpack-sdk/agentsChecklist
npm run lint)