Skip to content

Commit 53f3450

Browse files
chore: add full structure for xml ai insights examples (#1898)
1 parent 2fbd72f commit 53f3450

File tree

2 files changed

+49
-22
lines changed

2 files changed

+49
-22
lines changed

interactivity/built-in-client-integration-ai-insights.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,23 @@ To enable the AI-powered insights, follow these steps:
5757
}
5858
````
5959
````XML
60-
<Telerik.Reporting>
61-
<AIClient
62-
friendlyName="MicrosoftExtensionsAzureOpenAI"
63-
model="gpt-4o-mini"
64-
endpoint="https://ai-explorations.openai.azure.com/"
65-
credential="YOUR_API_KEY">
66-
</AIClient>
67-
</Telerik.Reporting>
60+
<configuration>
61+
<configSections>
62+
<section
63+
name="Telerik.Reporting"
64+
type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
65+
allowLocation="true"
66+
allowDefinition="Everywhere"/>
67+
</configSections>
68+
<Telerik.Reporting>
69+
<AIClient
70+
friendlyName="MicrosoftExtensionsAzureOpenAI"
71+
model="gpt-4o-mini"
72+
endpoint="https://ai-explorations.openai.azure.com/"
73+
credential="YOUR_API_KEY">
74+
</AIClient>
75+
</Telerik.Reporting>
76+
</configuration>
6877
````
6978

7079

interactivity/customizing-ai-powered-insights.md

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,20 @@ In enterprise environments where AI usage policies are already established or wh
3838
}
3939
````
4040
````XML
41-
<Telerik.Reporting>
42-
<AIClient
43-
requireConsent="false">
44-
</AIClient>
45-
</Telerik.Reporting>
41+
<configuration>
42+
<configSections>
43+
<section
44+
name="Telerik.Reporting"
45+
type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
46+
allowLocation="true"
47+
allowDefinition="Everywhere"/>
48+
</configSections>
49+
<Telerik.Reporting>
50+
<AIClient
51+
requireConsent="false">
52+
</AIClient>
53+
</Telerik.Reporting>
54+
</configuration>
4655
````
4756

4857
### Prompts Configuration
@@ -65,15 +74,24 @@ To restrict users to predefined prompts only, you set `allowCustomPrompts` to `f
6574
}
6675
````
6776
````XML
68-
<Telerik.Reporting>
69-
<AIClient
70-
allowCustomPrompts="false">
71-
<predefinedPrompts>
72-
<add text="Generate a summary of the report." />
73-
<add text="Translate the report into German." />
74-
</predefinedPrompts>
75-
</AIClient>
76-
</Telerik.Reporting>
77+
<configuration>
78+
<configSections>
79+
<section
80+
name="Telerik.Reporting"
81+
type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
82+
allowLocation="true"
83+
allowDefinition="Everywhere"/>
84+
</configSections>
85+
<Telerik.Reporting>
86+
<AIClient
87+
allowCustomPrompts="false">
88+
<predefinedPrompts>
89+
<add text="Generate a summary of the report." />
90+
<add text="Translate the report into German." />
91+
</predefinedPrompts>
92+
</AIClient>
93+
</Telerik.Reporting>
94+
</configuration>
7795
````
7896

7997
You can also add predefined prompts without disabling custom ones, giving users both curated options and the flexibility to create their own queries.

0 commit comments

Comments
 (0)