Skip to content

Commit 37c8f10

Browse files
committed
add maxVersion to existing agents to ensure backward compatibility
1 parent 2dc7b5f commit 37c8f10

File tree

6 files changed

+29
-5
lines changed

6 files changed

+29
-5
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
import { HttpAgent } from "@ag-ui/client";
22

3-
export class ADKAgent extends HttpAgent {}
3+
export class ADKAgent extends HttpAgent {
4+
public override get maxVersion(): string {
5+
return "0.0.39";
6+
}
7+
}

integrations/agno/typescript/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55

66
import { HttpAgent } from "@ag-ui/client";
77

8-
export class AgnoAgent extends HttpAgent {}
8+
export class AgnoAgent extends HttpAgent {
9+
public override get maxVersion(): string {
10+
return "0.0.39";
11+
}
12+
}

integrations/community/spring-ai/typescript/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
import { HttpAgent } from "@ag-ui/client";
66

7-
export class SpringAiAgent extends HttpAgent {}
7+
export class SpringAiAgent extends HttpAgent {
8+
public override get maxVersion(): string {
9+
return "0.0.39";
10+
}
11+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
import { HttpAgent } from "@ag-ui/client";
22

3-
export class CrewAIAgent extends HttpAgent {}
3+
export class CrewAIAgent extends HttpAgent {
4+
public override get maxVersion(): string {
5+
return "0.0.39";
6+
}
7+
}

integrations/llama-index/typescript/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ function normalizeEmptyToolResults(messages: Message[]): Message[] {
3434
}
3535

3636
export class LlamaIndexAgent extends HttpAgent {
37+
public override get maxVersion(): string {
38+
return "0.0.39";
39+
}
40+
3741
public override run(input: RunAgentInput): Observable<BaseEvent> {
3842
const sanitizedInput: RunAgentInput = {
3943
...input,
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
import { HttpAgent } from "@ag-ui/client";
22

3-
export class PydanticAIAgent extends HttpAgent {}
3+
export class PydanticAIAgent extends HttpAgent {
4+
public override get maxVersion(): string {
5+
return "0.0.39";
6+
}
7+
}

0 commit comments

Comments
 (0)