-
Notifications
You must be signed in to change notification settings - Fork 164
feat: add analyst agent support for canvas dashboard #8669
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
| **Phase 1: discovery (setup)** | ||
| {{ if .explore }} | ||
| Your goal is to analyze the contents of the dashboard "{{ .explore }}", which is powered by the metrics view "{{ .metrics_view }}". | ||
| Your goal is to analyze the contents of the dashboard "{{ .explore }}", which is powered by the metrics view "{{ .metrics_views }}". |
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.
Plural + removing quotes since it's quoted by the code now
| Your goal is to analyze the contents of the dashboard "{{ .explore }}", which is powered by the metrics view "{{ .metrics_views }}". | |
| Your goal is to analyze the contents of the dashboard "{{ .explore }}", which is powered by the metrics view(s) {{ .metrics_views }}. |
| 1. Carefully study the metrics view definition to understand the measures and dimensions available for analysis. | ||
| 2. Remember the time range of available data and use it to inform and filter your queries. | ||
| {{ else if .canvas }} | ||
| Your goal is to analyze the contents of the canvas "{{ .canvas }}", which is powered by the metrics view "{{ .metrics_views }}". |
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.
| Your goal is to analyze the contents of the canvas "{{ .canvas }}", which is powered by the metrics view "{{ .metrics_views }}". | |
| Your goal is to analyze the contents of the canvas "{{ .canvas }}", which is powered by the metrics view(s) {{ .metrics_views }}. |
| runtimev1 "github.com/rilldata/rill/proto/gen/rill/runtime/v1" | ||
| "github.com/rilldata/rill/runtime/drivers" | ||
| "github.com/rilldata/rill/runtime/metricsview/metricssql" | ||
| "google.golang.org/grpc/codes" | ||
| "google.golang.org/grpc/status" | ||
| ) | ||
|
|
||
| func (r *Runtime) ResolveCanvas(ctx context.Context, instanceID, canvas string, claims *SecurityClaims) (*runtimev1.ResolveCanvasResponse, error) { |
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.
Since the runtime package is not server-specific, it should not use any of the server types, like codes or runtimev1.ResolveCanvasResponse.
I think the idiomatic way to handle the result here would be to add a ResolveCanvasResult type right in this file.
Adds support for analyst agent for canvas dashboards.
Closes APP-674
Checklist: