diff --git a/.changeset/hungry-taxes-admire.md b/.changeset/hungry-taxes-admire.md new file mode 100644 index 000000000..f26a87d49 --- /dev/null +++ b/.changeset/hungry-taxes-admire.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Agents can now send a goal with any question they ask on the Markdown version of a page. diff --git a/packages/gitbook/src/middleware.ts b/packages/gitbook/src/middleware.ts index 49dce90fa..8a75df506 100644 --- a/packages/gitbook/src/middleware.ts +++ b/packages/gitbook/src/middleware.ts @@ -954,6 +954,7 @@ function encodePathInSiteContent( { type: 'ask_question', query: ask, + goal: typeof goal === 'string' ? goal : undefined, location: { displayContext: SiteInsightsDisplayContext.Server, },