Skip to content

Conversation

@sagar1993
Copy link
Contributor

@sagar1993 sagar1993 commented Jul 11, 2025

ResponseFormat is used to map string keys in response json

example usage

getDataSourceSuggestions(
"""
User query used to suggest data sources.
"""
query: String!
): eureka_DataSourceSuggestionResponse!
@prismpublic(
argwrapper: { name: "request", type: "Input_eureka_DataSourceSuggestionRequest" }
responseKeyFormat: """
{
"dataSources": "data_sources",
"llmReasoning": "llm_reasoning",
"displayName": "name",
"queryGetDataSourceSuggestions": "getDataSourceSuggestions"
}
"""
)
@rest(path: "/ai/data-source-suggestions", method: "POST", category: "AI")
@Version(minVersion: "10.12.0.cl", beta: true)

Here dataSources from API will be mapped to data_sources and so on

@codesandbox
Copy link

codesandbox bot commented Jul 11, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@mnk-blr
Copy link
Contributor

mnk-blr commented Jul 11, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

ResponseFormat is used to map string keys in response json
Copy link
Contributor

@jbhanu-thoughtspot jbhanu-thoughtspot left a comment

Choose a reason for hiding this comment

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

lgtm

@sagar1993 sagar1993 merged commit 9ac6d7a into main Jul 17, 2025
4 checks passed
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.

5 participants