Skip to content

Commit a3509fe

Browse files
committed
Use install code tabs on Chat XDK reference instead of a table
Match Getting Started language tabs with per-language install snippets.
1 parent 61db747 commit a3509fe

1 file changed

Lines changed: 36 additions & 8 deletions

File tree

xchat/xchat-xdk.mdx

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,42 @@ App walkthrough: [Getting Started](/xchat/getting-started). Sample bots: [chat-x
1111

1212
### Install
1313

14-
| Language | Install / import |
15-
|:---------|:-----------------|
16-
| Python | `pip install chat-xdk``from chat_xdk import Chat` |
17-
| TypeScript / JS | `npm install @xdevplatform/chat-xdk` |
18-
| Rust | crates `chat_xdk` or `chat-xdk-core` |
19-
| Go | `github.com/xdevplatform/chat-xdk/go/chatxdk` |
20-
| C# | `ChatXdk` package (.NET 8+; native library on the loader path) |
21-
| Java | `com.xdevplatform.chatxdk` (JNA; same native library as .NET) |
14+
<Tabs>
15+
<Tab title="Python">
16+
```bash
17+
pip install chat-xdk
18+
```
19+
</Tab>
20+
<Tab title="TypeScript">
21+
```bash
22+
npm install @xdevplatform/chat-xdk
23+
```
24+
</Tab>
25+
<Tab title="Rust">
26+
```toml
27+
[dependencies]
28+
chat-xdk-core = "0.2"
29+
# or: chat_xdk for the async Juicebox-oriented crate
30+
```
31+
</Tab>
32+
<Tab title="Go">
33+
```bash
34+
go get github.com/xdevplatform/chat-xdk/go/chatxdk
35+
```
36+
</Tab>
37+
<Tab title="C#">
38+
```bash
39+
# From the chat-xdk repo: cargo build -p chat-xdk-dotnet --release
40+
# Reference the ChatXdk package; place the native library on the loader path (.NET 8+)
41+
```
42+
</Tab>
43+
<Tab title="Java">
44+
```bash
45+
# Use com.xdevplatform.chatxdk (JNA) and the same native library as .NET (JDK 17+)
46+
# Set jna.library.path to the built chat_xdk_dotnet library
47+
```
48+
</Tab>
49+
</Tabs>
2250

2351
---
2452

0 commit comments

Comments
 (0)