Skip to content

Commit 842d1f6

Browse files
committed
fixup! review comments
Signed-off-by: Petr Kadlec <[email protected]>
1 parent 89d70ed commit 842d1f6

Some content is hidden

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

48 files changed

+147
-165
lines changed

apps/agentstack-sdk-py/examples/citation_agent.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ async def example_agent(
3333
await context.store(input)
3434

3535
# Simulate researching multiple sources
36-
research_text = """Based on recent research, artificial intelligence has made significant progress in natural
37-
language processing. Studies show that transformer models have revolutionized the field, and
38-
recent developments in large language models demonstrate remarkable capabilities in understanding
36+
research_text = """Based on recent research, artificial intelligence has made significant progress in natural
37+
language processing. Studies show that transformer models have revolutionized the field, and
38+
recent developments in large language models demonstrate remarkable capabilities in understanding
3939
and generating human-like text."""
4040

4141
# Create citations for the sources
@@ -64,6 +64,7 @@ async def example_agent(
6464
yield message
6565
await context.store(message)
6666

67+
6768
def run():
6869
server.run(
6970
host=os.getenv("HOST", "127.0.0.1"), port=int(os.getenv("PORT", 8000)), context_store=PlatformContextStore()

apps/agentstack-sdk-py/examples/secrets_agent.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,28 @@
66

77
from a2a.types import Message
88

9+
from agentstack_sdk.a2a.extensions import (
10+
AgentDetail,
11+
AgentDetailContributor,
12+
)
913
from agentstack_sdk.a2a.extensions.auth.secrets import (
1014
SecretDemand,
1115
SecretsExtensionServer,
1216
SecretsExtensionSpec,
1317
SecretsServiceExtensionParams,
1418
)
1519
from agentstack_sdk.server import Server
16-
from agentstack_sdk.a2a.extensions import (
17-
AgentDetail,
18-
AgentDetailContributor,
19-
)
20-
2120

2221
server = Server()
2322

2423

2524
@server.agent(
2625
name="Agent with secrets",
2726
detail=AgentDetail(
28-
interaction_mode="multi-turn",
29-
author=AgentDetailContributor(name="BeeAI contributors"),
30-
contributors=[AgentDetailContributor(name="John"), AgentDetailContributor(name="Kate")],
31-
license="Apache 2.0",
27+
interaction_mode="multi-turn",
28+
author=AgentDetailContributor(name="BeeAI contributors"),
29+
contributors=[AgentDetailContributor(name="John"), AgentDetailContributor(name="Kate")],
30+
license="Apache 2.0",
3231
),
3332
)
3433
async def secrets_agent(

apps/agentstack-ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"remark-gfm": "^4.0.1",
6161
"remark-math": "^6.0.0",
6262
"rxjs": "^7.8.2",
63+
"server-only": "^0.0.1",
6364
"ts-pattern": "^5.9.0",
6465
"unified": "^11.0.5",
6566
"unist-util-visit": "^5.0.0",

apps/agentstack-ui/src/app/(auth)/rsc.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55
'use server';
6+
67
import { cookies } from 'next/headers';
78
import { redirect } from 'next/navigation';
89
import { getToken } from 'next-auth/jwt';

apps/agentstack-ui/src/app/(auth)/token-endpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2025 © BeeAI a Series of LF Projects, LLC
33
* SPDX-License-Identifier: Apache-2.0
44
*/
5-
'server-only';
5+
import 'server-only';
66

77
import * as openidClient from 'openid-client';
88

apps/agentstack-ui/src/app/(main)/[providerId]/about/page.tsx renamed to apps/agentstack-ui/src/app/(main)/agent/[providerId]/about/page.tsx

File renamed without changes.

apps/agentstack-ui/src/app/(main)/[providerId]/c/[contextId]/page.tsx renamed to apps/agentstack-ui/src/app/(main)/agent/[providerId]/c/[contextId]/page.tsx

File renamed without changes.

apps/agentstack-ui/src/app/(main)/[providerId]/ensure-model-selected.tsx renamed to apps/agentstack-ui/src/app/(main)/agent/[providerId]/ensure-model-selected.tsx

File renamed without changes.

apps/agentstack-ui/src/app/(main)/[providerId]/global-settings/page.tsx renamed to apps/agentstack-ui/src/app/(main)/agent/[providerId]/global-settings/page.tsx

File renamed without changes.

apps/agentstack-ui/src/app/(main)/[providerId]/layout.tsx renamed to apps/agentstack-ui/src/app/(main)/agent/[providerId]/layout.tsx

File renamed without changes.

0 commit comments

Comments
 (0)