Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix TypeError: ExploreResult has txResult not result - Switch provider URL to devnet-api.ainetwork.ai (HTTPS) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- src/llm/index.ts: Llm class with infer(), chat(), complete() methods that call ain_llm_infer via provider.send() - src/llm/types.ts: ChatMessage, ChatOptions, InferInput, InferResult - src/knowledge/index.ts: add aiExplore(), aiGenerateCourse(), aiAnalyze() methods that use LLM through the AIN node's JSON-RPC - src/knowledge/types.ts: add AiExploreOptions, CourseStage interfaces - src/ain.ts: wire up ain.llm = new Llm(this.provider) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Unit tests (24): LLM infer/chat/complete, Knowledge AI methods (aiExplore, aiGenerateCourse, aiAnalyze) with mock provider. E2E tests (28): Real devnet integration covering knowledge reads (topics, explorations, frontier, graph, access), LLM inference (Qwen3 vLLM), knowledge writes with block finalization, and AI-powered operations (aiExplore, aiAnalyze, aiGenerateCourse). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…se, aiAnalyze
- Add thinking field to InferResult type
- Add AiExploreResult, AiCourseResult, AiAnalyzeResult types
- aiExplore now returns { ...exploreResult, thinking }
- aiGenerateCourse now returns { stages, thinking }
- aiAnalyze now returns { content, thinking } (breaking: was string)
- Update all unit and e2e tests for new return types
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace all hardcoded provider URLs and private keys in examples and tests with process.env.AIN_PROVIDER_URL and process.env.AIN_PRIVATE_KEY. Examples now fail fast with a clear error if AIN_PRIVATE_KEY is not set. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dev-ainetwork
approved these changes
Feb 19, 2026
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.
No description provided.