-
Notifications
You must be signed in to change notification settings - Fork 31
feat: agent.action.transform
can now transform images to text descriptions
#1096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Coverage Report
File Coverage
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (Assuming sourcePath
on image-description
is coming later)
I think I might just change it, and not keep the string version, just so sourcePath is more discoverable when you look for image-description |
`sourcePath` must be an image or image asset field. | ||
|
||
For example: | ||
- `target: {path: ['description'], operation: operation: {type: 'image-description', sourcePath: ['image', 'asset'] }` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `target: {path: ['description'], operation: operation: {type: 'image-description', sourcePath: ['image', 'asset'] }` | |
- `target: {path: ['description'], operation: {type: 'image-description', sourcePath: ['image', 'asset'] }` |
Read README/TSDoc changes for what this does.
The above fields was generated for the image using this request:
npm i @sanity/client@agent-actions
7.4.0-agent-actions.2