Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AI - Use structured JSON output #1871

Open
moshloop opened this issue Feb 25, 2025 · 0 comments
Open

AI - Use structured JSON output #1871

moshloop opened this issue Feb 25, 2025 · 0 comments

Comments

@moshloop
Copy link
Member

Instead of asking the AI to build the slack message, we ask it to produce structured json matching a schema:

{ title: summary: severity: events: [ ], playbooks: [ id: abc params: { "a": b, } ], links: [ { name: "Grafana", url: .. } }

We can then have a function to turn the AI response into a slack block, and another function to turn a config item/comonent/canary into the same object structure and then have a merge eg.

slackMerge(configItemToSlack(.config), aiToSlack(.actions.ai.output))

wdyt @adityathebe @yashmehrotra

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant