PageContext
Describes the Pulumi Cloud page the user has the Neo pane open on. Sent on every Neo prompt request (initial creation and follow-ups) so the agent’s system prompt can reference the user’s current location. The schema is intentionally generic: path is the raw URL, params carries route path parameters extracted by the client, and kind is an optional stable label set by the route definition (in console2 via data: { pageContextKind: ... }) for cases where the agent should special-case the page. New pages flow through automatically — only routes that need stable agent treatment must declare a kind.
Properties
kindstring optionalOptional stable label declared by the route, used by the agent to phrase the user’s location in its system prompt or branch on well-known pages. Examples: ‘stack-update’, ’environment’, ’neo-task’. Routes without a declared kind leave this null; the agent falls back to the path and params.pathstring optionalRaw URL path of the page the user is viewing (e.g. ‘/myorg/myapp/prod/updates/47’). Always populated.paramsmap[string]string optionalRoute path parameters extracted from the matched Angular route, keyed by parameter name (e.g. {‘organization’: ‘myorg’, ‘project’: ‘myapp’, ‘stack’: ‘prod’, ‘version’: ‘47’}). Empty for routes with no path parameters.
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.