@sanity/client 7.8.1-agent-action-perspective.0 → 7.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +4 -10
- package/dist/index.browser.d.ts +4 -10
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -10
- package/dist/index.d.ts +4 -10
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +4 -10
- package/dist/stega.browser.d.ts +4 -10
- package/dist/stega.d.cts +4 -10
- package/dist/stega.d.ts +4 -10
- package/package.json +1 -1
- package/src/agent/actions/prompt.ts +4 -10
package/README.md
CHANGED
|
@@ -2216,13 +2216,13 @@ const result = await client.agent.action.prompt({
|
|
|
2216
2216
|
name: 'Mark',
|
|
2217
2217
|
},
|
|
2218
2218
|
temperature: 0.5,
|
|
2219
|
-
format: '
|
|
2219
|
+
format: 'string',
|
|
2220
2220
|
})
|
|
2221
2221
|
```
|
|
2222
2222
|
|
|
2223
2223
|
- **instruction**: A string template describing what the LLM should do. Use `$variable` for dynamic values.
|
|
2224
2224
|
- **instructionParams**: Values for variables in the instruction. Supports constants, fields, documents, or GROQ queries.
|
|
2225
|
-
- **format**: (Optional) '
|
|
2225
|
+
- **format**: (Optional) 'string' or 'json'. Defaults to 'string'. Note that when specifying 'json', the instruction MUST include the word "json" (ignoring case) in some form.
|
|
2226
2226
|
- **temperature**: (Optional) Controls variance, 0-1 – defaults to 0
|
|
2227
2227
|
|
|
2228
2228
|
#### Patch with a schema-aware API
|