Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored.
The response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.
Score how well every chart type fits a dataset. Evaluation is deterministic — a rule-based scorer with no language model — so it returns a single result and uses no tokens. Send a GraphConfig, receive a ranked list of chart types via Server-Sent Events.
Request body
Send a GraphConfig in config. Only config.data is scored — the chart type, styling, and annotations are ignored. Optionally pass a chartFamily hint (comparison, relationship, distribution, composition) to bias the ranking toward that family.
Response
The response is a Server-Sent Events stream. See SSE Format for parsing details. Evaluation is deterministic, so there are no progress events — the result arrives in a single complete event.
event: completedata: {"ranking":[{"rank":1,"type":"bar","score":0.82,"verdict":"ok","factors":[{"kind":"pro","label":"Categorical x-axis","weight":0.3,"reason":"One categorical dimension maps cleanly to bars"}]}]}
Deterministic evaluation reads only config.data and the optional chartFamily — there is no userPrompt.
config
object
required
The graph configuration object used to render charts. See Graph Config Schema for the complete reference.
Show child attributes
chartFamily
enum<string>
Optional Abela chart-family hint. When set, chart types in that family get a fit bonus.
Available options:
comparison,
relationship,
distribution,
composition
metadata
object
Optional tracking information for requests
Show child attributes
Response
SSE stream with a single completion event
Evaluation complete event
Error event
SSE event name is "complete". Evaluation emits no progress events.
ranking
object[]
required
Every supported chart type, scored and ranked by fit (best first).
Show child attributes
⌘I
{"docsConfig":{"theme":"willow","$schema":"https://mintlify.com/docs.json","name":"Graphy SDK","colors":{"primary":"#D4594C","light":"#FC6A5B","dark":"#D4594C"},"logo":{"light":"https://mintcdn.com/graphy-26e77454/4jj7tMsipmIkU_-h/assets/logo-black.png?fit=max\u0026auto=format\u0026n=4jj7tMsipmIkU_-h\u0026q=85\u0026s=6b44d903b3cc61bf496cef3fef3818d8","dark":"https://mintcdn.com/graphy-26e77454/4jj7tMsipmIkU_-h/assets/logo-white.png?fit=max\u0026auto=format\u0026n=4jj7tMsipmIkU_-h\u0026q=85\u0026s=afb68d08ae1122810d0d04339311d643"},"favicon":"https://mintcdn.com/graphy-26e77454/4jj7tMsipmIkU_-h/favicon.ico?fit=max\u0026auto=format\u0026n=4jj7tMsipmIkU_-h\u0026q=85\u0026s=aedfda5ee665576f2aa6da5327a0e3c2","navbar":{"links":[{"href":"/licence/evaluation","label":"Licence"},{"href":"https://discord.gg/yGmYCjkSr","label":"Support"}]},"fonts":{"heading":{"family":"Space Grotesk","weight":700},"body":{"family":"Space Grotesk","weight":400}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"graphy-26e77454","hasAudioNarration":false,"actualSubdomain":"graphy-26e77454","customDomains":["docs.graphy.dev"],"gitSource":{"type":"github","owner":"graphysdk","repo":"monorepo","deployBranch":"main","contentDirectory":"apps/sdk-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af726f38995c8cbf2f5bc4b","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"SDK","count":79},{"language":"default","tag":"SDK (Classic)","count":46},{"language":"default","tag":"Agents API","count":27},{"language":"default","tag":"Configuration","count":18},{"language":"default","tag":"Chart types","count":18},{"language":"default","tag":"Themes","count":18},{"language":"default","tag":"Graph types","count":15},{"language":"default","tag":"Get Started","count":13},{"language":"default","tag":"Data Import","count":12},{"language":"default","tag":"REST API","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".graph-preview{position:relative;iframe {\n width: 100%;\n height: 100%;\n border: none;\n /* Required for transparency around corners */\n color-scheme: light dark;\n background: transparent;\n }\n [data-as='iframe'] {\n width: 100%;\n height: 100%;\n border: solid 1px var(--twoslash-border-color);\n border-radius: 8px;\n overflow: hidden;\n }}.prose :where(strong){font-weight:600!important}"}],"page":{"pagePath":"agents/rest/evaluate","slug":"/agents/rest/evaluate","pageMetadata":{"title":"Evaluation","icon":"ranking-star","openapi":"POST /api/v0/evaluate","description":"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored.\n\nThe response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\n","href":"/agents/rest/evaluate"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"The response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Score how well every chart type fits a dataset. Evaluation is deterministic — a rule-based scorer with no language model — so it returns a single result and uses no tokens. Send a `,_jsx(_components.code,{children:`GraphConfig`}),`, receive a ranked list of chart types via Server-Sent Events.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsxs(_components.p,{children:[`Send a `,_jsx(_components.code,{children:`GraphConfig`}),` in `,_jsx(_components.code,{children:`config`}),`. Only `,_jsx(_components.code,{children:`config.data`}),` is scored — the chart `,_jsx(_components.code,{children:`type`}),`, styling, and annotations are ignored. Optionally pass a `,_jsx(_components.code,{children:`chartFamily`}),` hint (`,_jsx(_components.code,{children:`comparison`}),`, `,_jsx(_components.code,{children:`relationship`}),`, `,_jsx(_components.code,{children:`distribution`}),`, `,_jsx(_components.code,{children:`composition`}),`) to bias the ranking toward that family.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`The response is a Server-Sent Events stream. See `,_jsx(_components.a,{href:`/agents/rest/sse`,children:`SSE Format`}),` for parsing details. Evaluation is deterministic, so there are no `,_jsx(_components.code,{children:`progress`}),` events — the result arrives in a single `,_jsx(_components.code,{children:`complete`}),` event.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: complete`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: {\"ranking\":[{\"rank\":1,\"type\":\"bar\",\"score\":0.82,\"verdict\":\"ok\",\"factors\":[{\"kind\":\"pro\",\"label\":\"Categorical x-axis\",\"weight\":0.3,\"reason\":\"One categorical dimension maps cleanly to bars\"}]}]}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Final response data:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` EvaluateResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` ranking`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ChartFitEntry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[];`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ChartFitEntry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` rank`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AiChartType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` score`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` verdict`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ok'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'disqualified'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` factors`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ChartFitFactor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[];`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/agents/sdk/evaluate`,children:`SDK Evaluation page`}),` for the full `,_jsx(_components.code,{children:`ChartFitEntry`}),` and `,_jsx(_components.code,{children:`ChartFitFactor`}),` field reference.`]}),`\n`,_jsx(Heading,{level:`2`,id:`http-status-codes`,children:`HTTP Status Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`200`}),_jsx(_components.td,{children:`Success (stream begins)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Invalid request body`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Invalid or missing API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Rate limit exceeded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Internal server error`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Errors may also arrive as SSE events within a 200 response — for example, a dataset with no plottable columns. See `,_jsx(_components.a,{href:`/agents/rest/errors`,children:`Error Codes`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Evaluation","icon":"ranking-star","openapi":"POST /api/v0/evaluate","description":"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored.\n\nThe response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\n","href":"/agents/rest/evaluate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"HTTP Status Codes","slug":"http-status-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"evaluateDataset","summary":"Evaluation","description":"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored.\n\nThe response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\n","tags":["Agents"],"requestBody":"a5c87aee-650f-4c76-9622-8011388985d4","responses":{"200":"ed03325e-db1e-4268-ac50-1bf87c2a7838","400":"b73140f3-d240-4121-92e1-7fa5e4390251","401":"b97ccd64-c1c7-497d-8ec2-515670ff7477"},"method":"post","type":"path","servers":["a2c1090a-55b6-4535-a38b-21c8b0fc6ff5"],"security":["6cd8b087-1c4d-46fe-9825-ab109a7253be"],"path":"/api/v0/evaluate","baseUrlOptions":["https://agents.graphy.dev"],"title":"Evaluation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Deterministic evaluation reads only config.data and the optional chartFamily — there is no userPrompt.","properties":{"config":{"type":"object","description":"The graph configuration object used to render charts. See [Graph Config Schema](/sdk/reference/graph-config) for the complete reference.","properties":{"type":{"type":"string","enum":["line","areaStacked","bar","groupedBar","stackedBar","100StackedBar","column","groupedColumn","stackedColumn","100StackedColumn","combo","pie","donut","funnel","heatmap","scatter","bubble","waterfall","table","mekko"],"description":"The chart type","isRequired":true,"uniqueKey":"config.type","typeLabel":"enum\u003cstring>"},"data":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","uniqueKey":"config.data.columns.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","uniqueKey":"config.data.columns.items.[INDEX].label","typeLabel":"string"}},"uniqueKey":"config.data.columns.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.data.columns","typeLabel":"object[]"},"rows":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"config.data.rows.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.data.rows","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"config.data","typeLabel":"object"}},"required":["type","data"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"chartFamily":{"type":"string","enum":["comparison","relationship","distribution","composition"],"description":"Optional Abela chart-family hint. When set, chart types in that family get a fit bonus.","uniqueKey":"chartFamily","typeLabel":"enum\u003cstring>"},"metadata":{"type":"object","description":"Optional tracking information for requests","properties":{"callId":{"type":"string","description":"Required when metadata is provided. Unique identifier for tracking and debugging.","isRequired":true,"uniqueKey":"metadata.callId","typeLabel":"string"},"locale":{"type":"string","enum":["EN_GB","EN_US","AR","PT_PT"],"description":"Locale for responses","uniqueKey":"metadata.locale","typeLabel":"enum\u003cstring>"},"effort":{"type":"string","enum":["low","medium","high"],"description":"Preferred invocation tier; forwarded on the invocation (including nested agents). When omitted, it can be inferred from `storytellingEffort` or defaults to `medium`.","uniqueKey":"metadata.effort","typeLabel":"enum\u003cstring>"},"storytellingEffort":{"type":"string","enum":["none","low","medium","high"],"description":"Deprecated. Prefer `effort`. When set without `effort`, the server derives `effort` for propagation. For chart generation, an explicit value still controls narrative richness when both `effort` and `storytellingEffort` are present (`storytellingEffort` wins for the chart).","uniqueKey":"metadata.storytellingEffort","typeLabel":"enum\u003cstring>"}},"required":["callId"],"uniqueKey":"metadata","typeLabel":"object"}},"required":["config"],"uniqueKey":"","typeLabel":"object"},"example":{"config":{"type":"column","data":{"columns":[{"key":"product","label":"Product"},{"key":"revenue","label":"Revenue"}],"rows":[{"product":"Widget A","revenue":4200},{"product":"Widget B","revenue":3100},{"product":"Widget C","revenue":5600}]}},"metadata":{"callId":"req-evaluate-1"}},"examples":{"Example":{"title":"Example","value":{"config":{"type":"column","data":{"columns":[{"key":"product","label":"Product"},{"key":"revenue","label":"Revenue"}],"rows":[{"product":"Widget A","revenue":4200},{"product":"Widget B","revenue":3100},{"product":"Widget C","revenue":5600}]}},"metadata":{"callId":"req-evaluate-1"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ed03325e-db1e-4268-ac50-1bf87c2a7838":{"description":"SSE stream with a single completion event","content":{"text/event-stream":{"schema":{"oneOf":[{"type":"object","title":"Evaluation complete event","description":"SSE event name is \"complete\". Evaluation emits no progress events.","required":["ranking"],"properties":{"ranking":{"type":"array","items":{"type":"object","description":"A single chart type, scored against the dataset.","properties":{"rank":{"type":"integer","description":"1-based rank in the response array. Stable as scoring rules evolve — prefer it over score.","isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].rank","typeLabel":"integer"},"type":{"type":"string","enum":["line","areaStacked","bar","groupedBar","stackedBar","100StackedBar","column","groupedColumn","stackedColumn","100StackedColumn","combo","pie","donut","funnel","heatmap","scatter","bubble","waterfall","table","mekko"],"description":"The chart type being scored.","isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"score":{"type":"number","description":"Raw fit score. Drifts as rules change; use rank and verdict for stable checks.","isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].score","typeLabel":"number"},"verdict":{"type":"string","enum":["ok","disqualified"],"description":"ok if the chart type is usable, disqualified if a rule rules it out.","isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].verdict","typeLabel":"enum\u003cstring>"},"factors":{"type":"array","items":{"type":"object","description":"A single reason that contributed to a chart type's score.","properties":{"kind":{"type":"string","enum":["deal-breaker","pro","con","family","specificity","continuity"],"isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].factors.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"label":{"type":"string","description":"Short label for the factor.","isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].factors.items.[INDEX].label","typeLabel":"string"},"weight":{"type":"number","description":"How much the factor moved the score.","isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].factors.items.[INDEX].weight","typeLabel":"number"},"reason":{"type":"string","description":"Why the factor applies to this dataset.","isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].factors.items.[INDEX].reason","typeLabel":"string"}},"required":["kind","label","weight","reason"],"uniqueKey":"oneOf.0.ranking.items.[INDEX].factors.items.[INDEX]","typeLabel":"object"},"description":"The individual reasons that contributed to the score.","isRequired":true,"uniqueKey":"oneOf.0.ranking.items.[INDEX].factors","typeLabel":"object[]"}},"required":["rank","type","score","verdict","factors"],"uniqueKey":"oneOf.0.ranking.items.[INDEX]","typeLabel":"object"},"description":"Every supported chart type, scored and ranked by fit (best first).","isRequired":true,"uniqueKey":"oneOf.0.ranking","typeLabel":"object[]"}},"uniqueKey":"oneOf.0","typeLabel":"Evaluation complete event · object"},{"type":"object","title":"Error event","description":"SSE event name is \"error\"","properties":{"message":{"type":"string","uniqueKey":"oneOf.1.message","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"Error event · object"}],"uniqueKey":"","typeLabel":"Evaluation complete event · object | Error event · object"},"examples":{"Example":{"title":"Example","value":{"ranking":[{"rank":123,"type":"line","score":123,"verdict":"ok","factors":[{"kind":"deal-breaker","label":"\u003cstring>","weight":123,"reason":"\u003cstring>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"b73140f3-d240-4121-92e1-7fa5e4390251":{"description":"Bad Request - Invalid request body","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"b97ccd64-c1c7-497d-8ec2-515670ff7477":{"description":"Unauthorized - Invalid or missing API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"6cd8b087-1c4d-46fe-9825-ab109a7253be":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your Graphy API key (starts with graphy_). Create one in the Graphy console at https://agents.graphy.dev/console/","scopes":[]}}},"servers":{"a2c1090a-55b6-4535-a38b-21c8b0fc6ff5":{"url":"https://agents.graphy.dev","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your Graphy API key (starts with graphy_). Create one in the Graphy console at https://agents.graphy.dev/console/","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your Graphy API key (starts with graphy_). Create one in the Graphy console at https://agents.graphy.dev/console/","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"agents/openapi.yaml"},"subdomain":"graphy-26e77454","siteName":"Graphy SDK","title":"Evaluation - Graphy SDK","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-29T12:44:24.108Z","originalFileLocation":"agents/rest/evaluate.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored. The response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Graphy SDK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Evaluation - Graphy SDK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored. The response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Graphy SDK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.graphy.dev/agents/rest/evaluate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://graphy-26e77454.mintlify.site/_mintlify/api/og/v2?division=REST+API\u0026amp;title=Evaluation\u0026amp;description=Score+how+well+every+chart+type+fits+a+dataset.+Deterministic+%E2%80%94+a+rule-based+scorer+with+no+language+model%2C+so+it+returns+a+single+result+and+uses+no+tokens.+On\u0026amp;theme=da1a2e76c9a462caed72bdb3\u0026amp;signature=b999dc016ce808ddb665d923e798230af942d2e903121bf99d57a830f18188ef\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Evaluation - Graphy SDK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored. The response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://graphy-26e77454.mintlify.site/_mintlify/api/og/v2?division=REST+API\u0026amp;title=Evaluation\u0026amp;description=Score+how+well+every+chart+type+fits+a+dataset.+Deterministic+%E2%80%94+a+rule-based+scorer+with+no+language+model%2C+so+it+returns+a+single+result+and+uses+no+tokens.+On\u0026amp;theme=da1a2e76c9a462caed72bdb3\u0026amp;signature=b999dc016ce808ddb665d923e798230af942d2e903121bf99d57a830f18188ef\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Graphy SDK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D4594C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.graphy.dev/agents/rest/evaluate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/agents/rest/evaluate.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.graphy.dev/#organization\",\"name\":\"Graphy SDK\",\"url\":\"https://docs.graphy.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/graphy-26e77454/4jj7tMsipmIkU_-h/assets/logo-black.png?fit=max\u0026auto=format\u0026n=4jj7tMsipmIkU_-h\u0026q=85\u0026s=6b44d903b3cc61bf496cef3fef3818d8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.graphy.dev#website\",\"name\":\"Graphy SDK\",\"url\":\"https://docs.graphy.dev\",\"publisher\":{\"@id\":\"https://docs.graphy.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.graphy.dev/agents/rest/evaluate#webpage\",\"url\":\"https://docs.graphy.dev/agents/rest/evaluate\",\"name\":\"Evaluation\",\"description\":\"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored. The response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\",\"dateModified\":\"2026-05-29T12:44:24.108Z\",\"isPartOf\":{\"@id\":\"https://docs.graphy.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.graphy.dev/agents/rest/evaluate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.graphy.dev/agents/rest/evaluate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API\",\"item\":\"https://docs.graphy.dev/agents/rest/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Evaluation\",\"item\":\"https://docs.graphy.dev/agents/rest/evaluate\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.graphy.dev/agents/rest/evaluate#apireference\",\"headline\":\"Evaluation\",\"name\":\"Evaluation\",\"description\":\"Score how well every chart type fits a dataset. Deterministic — a rule-based scorer with no language model, so it returns a single result and uses no tokens. Only config.data is scored. The response is a Server-Sent Events (SSE) stream. Evaluation emits no progress events — the result arrives in a single complete event.\",\"url\":\"https://docs.graphy.dev/agents/rest/evaluate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.graphy.dev/agents/rest/evaluate#webpage\"},\"dateModified\":\"2026-05-29T12:44:24.108Z\",\"publisher\":{\"@id\":\"https://docs.graphy.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.graphy.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Graphy SDK\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Graphy SDK\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/agents/rest/evaluate.md","siteName":"Graphy SDK","nav":{"global":null,"tabs":[{"tab":"SDK","icon":"chart-line","pages":[{"title":"SDK","href":""}]},{"tab":"Agents API","icon":"robot","groups":[{"group":"Get Started","pages":[{"title":"Quickstart","icon":"rocket","href":"/agents/quickstart"},{"title":"API keys","icon":"key","href":"/agents/api-keys"},{"title":"Overview","icon":"microchip-ai","href":"/agents/overview"},{"title":"Version management","icon":"code-branch","href":"/agents/versioning"},{"title":"Licence \u0026 evaluation","icon":"scale-balanced","href":"/licence/evaluation"}]},{"group":"TypeScript SDK","pages":[{"title":"Installation","icon":"download","href":"/agents/sdk/installation"},{"title":"Configuration","icon":"gear","href":"/agents/sdk/configuration"},{"title":"Chart Maker Agent","icon":"robot","href":"/agents/sdk/chart-maker"},{"title":"Suggestions Agent","icon":"lightbulb","href":"/agents/sdk/suggestions"},{"title":"Mutation Agent","icon":"table","href":"/agents/sdk/mutate"},{"title":"Annotation Agent","icon":"highlighter","href":"/agents/sdk/annotate"},{"title":"Narrative Agent","icon":"feather","href":"/agents/sdk/narrate"},{"title":"Extract Agent","icon":"file-import","href":"/agents/sdk/extract"},{"title":"Evaluation","icon":"ranking-star","href":"/agents/sdk/evaluate"},{"title":"Streaming","icon":"signal-stream","href":"/agents/sdk/streaming"},{"title":"Error Handling","icon":"circle-exclamation","href":"/agents/sdk/errors"}]},{"group":"REST API","pages":[{"title":"Authentication","icon":"key","href":"/agents/rest/authentication"},{"title":"Keyless access","icon":"door-open","href":"/agents/rest/keyless"},{"title":"Chart Maker Agent","icon":"robot","openapi":"POST /api/v0/generate","href":"/agents/rest/chart-maker"},{"title":"Suggestions Agent","icon":"lightbulb","openapi":"POST /api/v0/suggestions","href":"/agents/rest/suggestions"},{"title":"Mutation Agent","icon":"table","openapi":"POST /api/v0/mutate","href":"/agents/rest/mutate"},{"title":"Annotation Agent","icon":"highlighter","openapi":"POST /api/v0/annotate","href":"/agents/rest/annotate"},{"title":"Narrative Agent","icon":"feather","openapi":"POST /api/v0/narrate","href":"/agents/rest/narrate"},{"title":"Extract Agent","icon":"file-import","openapi":"POST /api/v0/extract","description":"Build a chart-ready dataset from unstructured text, images, PDFs, or .xlsx spreadsheets. Provide sourceText, attachments, or both.\n\nThe response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\n","href":"/agents/rest/extract"},{"title":"Evaluation","icon":"ranking-star","openapi":"POST /api/v0/evaluate","href":"/agents/rest/evaluate"},{"title":"SSE Format","icon":"signal-stream","description":null,"href":"/agents/rest/sse"},{"title":"Error Codes","icon":"circle-exclamation","href":"/agents/rest/errors"}]},{"group":"Reference","pages":[{"title":"Type Reference","icon":"brackets-curly","href":"/agents/reference/types"}]}]},{"tab":"Data Import","icon":"file-import","pages":[{"title":"Data Import","href":"/data-import-utils"}]},{"tab":"SDK (Classic)","icon":"chart-column","pages":[{"title":"SDK (Classic)","href":"/sdk/core/quickstart"}]}]},"basePath":"","title":"Evaluation - Graphy SDK","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}