Skip to content

Commit 57cad0e

Browse files
committed
Highlight Grok as a separate section with badges too
1 parent 6080f17 commit 57cad0e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,14 @@ var openai = new OpenAIClient(
240240
new OpenAIClientOptions().UseJsonConsoleLogging());
241241
```
242242

243-
For a Grok client with search-enabled, a request would look like the following:
244-
245-
![](https://raw.githubusercontent.com/devlooped/Extensions.AI/main/assets/img/chatmessage.png)
246-
247243
Both alternatives receive an optional `JsonConsoleOptions` instance to configure
248244
the output, including truncating or wrapping long messages, setting panel style,
249245
and more.
250246

251247
The chat pipeline logging is added similar to other pipeline extensions:
252248

253249
```csharp
254-
IChatClient client = new GrokChatClient(Environment.GetEnvironmentVariable("XAI_API_KEY")!, "grok-3-mini")
250+
IChatClient chat = new OpenAIChatClient(Environment.GetEnvironmentVariable("OPENAI_API_KEY")!, "gpt-5.2");
255251
.AsBuilder()
256252
.UseOpenTelemetry()
257253
// other extensions...
@@ -265,7 +261,11 @@ IChatClient client = new GrokChatClient(Environment.GetEnvironmentVariable("XAI_
265261
```
266262
<!-- #extensions -->
267263

268-
## Grok
264+
# Devlooped.Extensions.AI.Grok
265+
266+
[![Version](https://img.shields.io/nuget/vpre/Devlooped.Extensions.AI.Grok.svg?color=royalblue)](https://www.nuget.org/packages/Devlooped.Extensions.AI.Grok)
267+
[![Downloads](https://img.shields.io/nuget/dt/Devlooped.Extensions.AI.Grok.svg?color=green)](https://www.nuget.org/packages/Devlooped.Extensions.AI.Grok)
268+
269269
<!-- #grok-title -->
270270
Microsoft.Extensions.AI `IChatClient` for Grok with full support for all
271271
[agentic tools](https://docs.x.ai/docs/guides/tools/overview):
@@ -276,7 +276,7 @@ var grok = new GrokClient(Environment.GetEnvironmentVariable("XAI_API_KEY")!)
276276
```
277277
<!-- #grok-title -->
278278
<!-- #grok -->
279-
### Web Search
279+
## Web Search
280280

281281
```csharp
282282
var messages = new Chat()
@@ -316,7 +316,7 @@ You can alternatively set `ExcludedDomains` instead, and enable image
316316
understanding with `EnableImageUndestanding`. Learn more about these filters
317317
at [web search parameters](https://docs.x.ai/docs/guides/tools/search-tools#web-search-parameters).
318318

319-
### X Search
319+
## X Search
320320

321321
In addition to web search, Grok also supports searching on X (formerly Twitter):
322322

@@ -341,7 +341,7 @@ Learn more about available filters at [X search parameters](https://docs.x.ai/do
341341

342342
You can combine both web and X search in the same request by adding both tools.
343343

344-
### Code Execution
344+
## Code Execution
345345

346346
The code execution tool enables Grok to write and execute Python code in real-time,
347347
dramatically expanding its capabilities beyond text generation. This powerful feature
@@ -389,7 +389,7 @@ foreach (AIContent output in content.Outputs)
389389

390390
Learn more about the [code execution tool](https://docs.x.ai/docs/guides/tools/code-execution-tool).
391391

392-
### Collection Search
392+
## Collection Search
393393

394394
If you maintain a [collection](https://docs.x.ai/docs/key-information/collections),
395395
Grok can perform semantic search on it:
@@ -405,7 +405,7 @@ var options = new ChatOptions
405405

406406
Learn more about [collection search](https://docs.x.ai/docs/guides/tools/collections-search-tool).
407407

408-
### Remote MCP
408+
## Remote MCP
409409

410410
Remote MCP Tools allow Grok to connect to external MCP (Model Context Protocol) servers.
411411
This example sets up the GitHub MCP server so queries about releases (limited specifically

0 commit comments

Comments
 (0)