feat: update feedback API to support agent_execution and chat entities #100
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.
feat: update feedback API to support agent_execution and chat entities
Summary
Updates the Node.js SDK feedback endpoints to support the new API structure from vlm-lab PR #1060. The feedback system now supports three entity types (
request,agent_execution,chat) instead of just requests.Key Changes:
submitmethod: Now accepts optionalrequestId,agentExecutionId, orchatIdparameters (exactly one required)getmethod: Addedtypeparameter to specify entity type ("request","agent_execution","chat")The implementation uses method overloads to support both legacy signatures and new options-based signatures, with runtime type checking to distinguish between them.
Review & Testing Checklist for Human
submit({ agentExecutionId: "...", ... })andget("entity_id", { type: "agent_execution" })work correctly with the deployed vlm-lab backendsubmit(requestId, response, notes)andget(requestId, limit, offset)still works without changesNotes
getmethod now includestype: "request"parameter in API calls - this requires backend support for thetypequery parameterSession: https://app.devin.ai/sessions/bc0fe1ce7d1446e8a741cadf67d46474
Requested by: [email protected]
References: vlm-lab PR #1060