feat: Add live-api-debugger template#201
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughLive API Debugger adds a new Lamatic kit that accepts an error, failing code, and API docs URL, scrapes the docs, runs the context through an LLM, and returns a markdown fix. It also adds the kit template config, model config, prompts, constitution, and documentation. ChangesLive API Debugger Kit
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Please add the agentkit-challenge label. @coderabbitai review |
🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
gh pr edit 201 --repo Lamatic/AgentKit --add-label "agentkit-challenge"
gh pr view 201 --repo Lamatic/AgentKit --json labelsLength of output: 560
As for the review — mission accepted, this message will self-destruct... well, not really, but I'm kicking off the review now. ✅ Action performedReview finished.
|
:robot_face: AgentKit Structural ValidationNew Contributions Detected
Check Results
🎉 All checks passed! This contribution follows the AgentKit structure. |
2 similar comments
:robot_face: AgentKit Structural ValidationNew Contributions Detected
Check Results
🎉 All checks passed! This contribution follows the AgentKit structure. |
:robot_face: AgentKit Structural ValidationNew Contributions Detected
Check Results
🎉 All checks passed! This contribution follows the AgentKit structure. |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@kits/live-api-debugger/agent.md`:
- Line 10: Update the API Response bullet in the agent docs so it matches the
actual contract from live-api-debugger flow output: the runtime returns a JSON
object with a fix field rather than raw Markdown. Change the wording in the
agent.md entry to reference the JSON response envelope and keep it aligned with
the behavior implemented in live-api-debugger.ts.
- Around line 3-9: The markdown in the agent overview is missing required blank
lines after headings, causing the MD022 lint failure. Update the content under
the `## Overview` and `## Flow` headings in `agent.md` to insert a blank line
immediately after each heading while keeping the existing section text
unchanged. This should keep the document markdownlint-clean without altering the
meaning of the `Overview` and `Flow` sections.
In `@kits/live-api-debugger/README.md`:
- Around line 5-13: The README markdown headings in the live-api-debugger docs
are missing required blank lines, causing the MD022 lint warning. Update the
sections headed by “Why this exists”, “How it works”, and “How to test it” in
the README so each heading is followed by an empty line, keeping the existing
content under those headings unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: ASSERTIVE
Plan: Pro
Run ID: c0168eb0-40a4-44a2-8a36-da63b2b99613
📒 Files selected for processing (8)
kits/live-api-debugger/README.mdkits/live-api-debugger/agent.mdkits/live-api-debugger/constitutions/default.mdkits/live-api-debugger/flows/live-api-debugger.tskits/live-api-debugger/lamatic.config.tskits/live-api-debugger/model-configs/live-api-debugger_generate-text.tskits/live-api-debugger/prompts/live-api-debugger_generate-text_system.mdkits/live-api-debugger/prompts/live-api-debugger_generate-text_user.md
|
Hi @AniketKu23! 👋 Before this PR can be reviewed by maintainers, please resolve all comments and requested changes from the CodeRabbit automated review. Steps to follow:
This helps keep the review process efficient for everyone. Thank you! 🙏 |
|
I have already read through all the comments of CodeRabbit and adressed the issues raised. |
PR Checklist
1. Select Contribution Type
kits/<category>/<kit-name>/)bundles/<bundle-name>/)templates/<template-name>/)2. General Requirements
kebab-caseand matches the flow IDREADME.md(purpose, setup, usage)3. File Structure (Check what applies)
config.jsonpresent with valid metadata (name, description, tags, steps, author, env keys)flows/<flow-name>/(where applicable) include:config.json(Lamatic flow export)inputs.jsonmeta.jsonREADME.md.env.examplewith placeholder values only (kits only)config.jsonnode graphs (changes via Lamatic Studio export)4. Validation
npm install && npm run devworks locally (kits: UI runs; bundles/templates: flows are valid)[kit] Add <name> for <use case>)live-api-debuggerkit with these new files:kits/live-api-debugger/README.mdkits/live-api-debugger/agent.mdkits/live-api-debugger/constitutions/default.mdkits/live-api-debugger/lamatic.config.tskits/live-api-debugger/model-configs/live-api-debugger_generate-text.tskits/live-api-debugger/prompts/live-api-debugger_generate-text_system.mdkits/live-api-debugger/prompts/live-api-debugger_generate-text_user.mdkits/live-api-debugger/flows/live-api-debugger.ts(flow definition)kits/live-api-debugger/flows/live-api-debugger.ts; noflow.jsonpresent):triggerNode,dynamicNode(for scraper, LLM, and response nodes).error_message,failing_code, andapi_docs_url(viaadvance_schema; note:responeTypeis misspelled in the flow config).api_docs_urland extracts main content (onlyMainContent: true) to produce documentation context.@prompts/live-api-debugger_generate-text_user.md) and system prompt (@prompts/live-api-debugger_generate-text_system.md)@model-configs/live-api-debugger_generate-text.ts(OpenAIgpt-4o,temperature: 0.2)generatedResponse.{ fix: "{{LLMNode_3.output.generatedResponse}}" }.defaultEdge, and also include aresponseEdgefrom the trigger to the response node.lamatic.config.tsdefines the kit metadata and a single step referencinglive-api-debugger.constitutions/default.mdprovides the default behavior rules (helpful/professional; safe, secure code fixes).