Skip to content

Commit 947a4b9

Browse files
feat: persist language selection across sessions per integration (CopilotKit#2739)
1 parent eaabcae commit 947a4b9

57 files changed

Lines changed: 82 additions & 82 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/content/docs/adk/frontend-actions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Without frontend actions, agents are limited to just processing and returning da
8787

8888
ADK automatically picks up frontend actions when you create your agent. No special configuration or state inheritance is needed:
8989

90-
<Tabs groupId="language" items={['Python']} default="Python">
90+
<Tabs groupId="language_adk_agent" items={['Python']} default="Python" persist>
9191
<Tab value="Python">
9292
```python title="agent-py/sample_agent/agent.py"
9393
from fastapi import FastAPI

docs/content/docs/adk/generative-ui/agentic.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ is a situation where a user and an agent are working together to solve a problem
4141

4242
For the sake of this guide, let's say our state looks like this in our agent.
4343

44-
<Tabs groupId="language" items={['Python']} default="Python">
44+
<Tabs groupId="language_adk_agent" items={['Python']} default="Python" persist>
4545
<Tab value="Python">
4646
```python title="agent-py/sample_agent/agent.py"
4747
class SomeAgentState(BaseModel):
@@ -57,7 +57,7 @@ is a situation where a user and an agent are working together to solve a problem
5757
### Simulate state updates
5858
Next, let's write some logic into our agent that will simulate state updates occurring.
5959

60-
<Tabs groupId="language" items={['Python']} default="Python">
60+
<Tabs groupId="language_adk_agent" items={['Python']} default="Python" persist>
6161
<Tab value="Python">
6262
```python title="agent-py/sample_agent/agent.py"
6363
import json

docs/content/docs/adk/generative-ui/tool-based.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ you can follow the instructions in the [Getting Started](/adk/quickstart/adk) gu
3838
<Step>
3939
### Give your agent a tool to call
4040

41-
<Tabs groupId="language" items={['Python']} default="Python">
41+
<Tabs groupId="language_adk_agent" items={['Python']} default="Python" persist>
4242
<Tab value="Python">
4343
```python title="agent/sample_agent/agent.py"
4444
import uvicorn

docs/content/docs/adk/human-in-the-loop/agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Now we'll setup the ADK agent. The flow is hard to understand without a complete
101101
- If the `writeEssay` action is found in the model's response, the agent will pass control back to the frontend
102102
to get user feedback.
103103

104-
<Tabs groupId="language" items={["Python"]}>
104+
<Tabs groupId="language_adk_agent" items={["Python"]} persist>
105105
<Tab value="Python">
106106
```python title="agent/sample_agent/agent.py"
107107
import uvicorn

docs/content/docs/adk/shared-state/in-app-agent-read.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ state updates, you can reflect these updates natively in your application.
4040
ADK Agents are stateful. As you transition through the flow, that state is updated and available to the next function. For this example,
4141
let's assume that our agent state looks something like this.
4242

43-
<Tabs groupId="language" items={["Python"]}>
43+
<Tabs groupId="language_adk_agent" items={["Python"]} persist>
4444
<Tab value="Python">
4545
```python title="agent-py/sample_agent/agent.py"
4646
import json

docs/content/docs/adk/shared-state/in-app-agent-write.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ when your agent is calling tools. CopilotKit allows you to fully customize how t
4141
ADK Agents are stateful. As you transition through the flow, that state is updated and available to the next function. For this example,
4242
let's assume that our agent state looks something like this.
4343

44-
<Tabs groupId="language" items={["Python", "TypeScript"]}>
44+
<Tabs groupId="language_adk_agent" items={["Python", "TypeScript"]} persist>
4545
<Tab value="Python">
4646
```python title="agent-py/sample_agent/agent.py"
4747
import json

docs/content/docs/ag2/frontend-actions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Check out the [Frontend Tools overview](/frontend-tools) to understand what they
6161

6262
To access the frontend tools provided by CopilotKit, you can inherit from CopilotKitState in your agent's state definition:
6363

64-
<Tabs groupId="language" items={['Python']} default="Python">
64+
<Tabs groupId="language_ag2_agent" items={['Python']} default="Python" persist>
6565
<Tab value="Python">
6666
```python title="agent-py/sample_agent/agent.py"
6767
# your code goes here...
@@ -78,7 +78,7 @@ Check out the [Frontend Tools overview](/frontend-tools) to understand what they
7878

7979
Here's how you can call a frontend tool from your agent:
8080

81-
<Tabs groupId="language" items={['Python']} default="Python">
81+
<Tabs groupId="language_ag2_agent" items={['Python']} default="Python" persist>
8282
<Tab value="Python">
8383
```python title="agent-py/sample_agent/agent.py"
8484
# your code goes here...

docs/content/docs/ag2/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Before you begin, you'll need the following:
5858
<Step>
5959
### Clone the Starter Repository
6060

61-
<Tabs groupId="language" items={["Python"]}>
61+
<Tabs groupId="language_ag2_agent" items={["Python"]} persist>
6262
<Tab value="Python">
6363
```bash
6464
git clone https://github.com/ag2ai/ag2-copilotkit-starter.git

docs/content/docs/agno/generative-ui/tool-based.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pip install ddgs duckduckgo-search
5555
<Step>
5656
### Give your agent a tool to call
5757

58-
<Tabs groupId="language" items={['Python']} default="Python">
58+
<Tabs groupId="language_agno_agent" items={['Python']} default="Python" persist>
5959
<Tab value="Python">
6060
```python title="agent/sample_agent/agent.py"
6161
from agno.agent import Agent

docs/content/docs/crewai-flows/advanced/disabling-state-streaming.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Occasionally, you'll want to disable streaming temporarily — for example, the
1818

1919
You can control whether to stream messages or tool calls by selectively wrapping calls to `completion` with `copilotkit_stream`.
2020

21-
<Tabs groupId="language" items={['Python']} default="Python">
21+
<Tabs groupId="language_crewai-flows_agent" items={['Python']} default="Python" persist>
2222
<Tab value="Python">
2323
```python
2424
from copilotkit.crewai import copilotkit_stream

0 commit comments

Comments
 (0)