Skip to content

Add render item tool#3

Merged
danixeee merged 12 commits intomainfrom
render-tool
Sep 12, 2025
Merged

Add render item tool#3
danixeee merged 12 commits intomainfrom
render-tool

Conversation

@danixeee
Copy link
Copy Markdown
Contributor

@danixeee danixeee commented Sep 9, 2025

No description provided.

Copy link
Copy Markdown
Contributor

@ivansenic ivansenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo we need immediatelly getRender or something like this, and we need to solve pooling, so I can visually have the final video(s).. Imo that should be done in this task..

Some things need fixing imo, especially in the model

Comment thread src/sdk/api/renderItem.ts Outdated
Comment thread src/sdk/api/renderItem.ts
Comment thread src/sdk/types.ts Outdated
Comment thread src/tools/renderItem.ts Outdated
Comment thread src/tools/renderItem.ts Outdated
Comment thread src/tools/renderItem.ts
Comment thread src/tools/renderItem.ts
Comment thread src/tools/renderItem.ts
Comment thread src/tools/renderItem.ts Outdated
Comment on lines +194 to +195
type: "text",
text: `Failed to create render: ${err}`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really good? would add error in structured content.. Seems also that validation passed, but call failed? here he is using wrong parameter name 9.99 -> you did not exclude static params from the template

image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plus he does not understand it's not good

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have created a custom error with solutions for each. I have no idea if this works or not with LLM, lets test it a bit. The idea is to give LLM instructions what to do in case of any known error happens. Wdyt?

image

@danixeee danixeee requested a review from ivansenic September 11, 2025 10:37
@danixeee danixeee marked this pull request as ready for review September 12, 2025 10:58
Copy link
Copy Markdown
Contributor

@ivansenic ivansenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not bad, have a look on comments..

Comment thread src/tools/renderItem.ts
outputSchema: Output,
},
async ({ isDesign, projectDesignId, templateVariantId, parameters }) => {
// TODO: Handle object parameters "my.parameter.x"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess not needed, if explained how "keyed" params should be represented in the parameters object (just add instruction point)..

Comment thread src/tools/renderItem.ts Outdated
Comment thread src/tools/renderItem.ts
Comment thread src/tools/renderItem.ts

// Successful submission
return {
content: [
Copy link
Copy Markdown
Contributor

@ivansenic ivansenic Sep 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sence that we send also a https://modelcontextprotocol.io/specification/2025-06-18/server/tools#resource-links for this render html page, so link to app.plainlyvideos.com/renderid imo this makes a lot of sense, since I could at least get link until we have pooling

content is array and you can send multiple things

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

I tried but it is not really working like that, see above. But I can include a link in the output

Comment thread src/sdk/api/renderItem.ts Outdated
@danixeee danixeee merged commit d4bed78 into main Sep 12, 2025
1 check passed
@danixeee danixeee deleted the render-tool branch September 12, 2025 12:35
@danixeee danixeee mentioned this pull request Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants