mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0978b4f5ad
Apply the same fixes to both the strands (Python) and strands-typescript integrations for 1:1 parity: - Lift RunAgentInput.context into the prompt (buildStatePrompt / build_state_prompt) so useAgentContext values (readonly-state-agent-context) and the openGenerativeUI design-skill / sandbox-function context actually reach the model. The adapter does not surface context on its own; this mirrors langgraph's lift-context-into-prompt pattern. - open-gen-ui: prepend an imperative to the visualization design skill (and add a design skill to the advanced cell) so the model calls generateSandboxedUi instead of answering in plain text, and clarify that sandbox functions are iframe->host bridges, not LLM tools. - hitl-in-chat: sharpen the book_call description so it wins scheduling intents over the shared backend schedule_meeting tool (which renders no picker). - Add a roll_dice tool (shared python tools + TS tools) so the tool-rendering catch-all 'Roll a d20' and 'Chain tools' pills work.
50 lines
1.1 KiB
Python
50 lines
1.1 KiB
Python
"""Barrel exports for all shared showcase tool implementations."""
|
|
|
|
from .types import (
|
|
SalesStage,
|
|
SalesTodo,
|
|
Flight,
|
|
WeatherResult,
|
|
)
|
|
from .get_weather import get_weather_impl
|
|
from .query_data import query_data_impl
|
|
from .sales_todos import (
|
|
INITIAL_TODOS,
|
|
manage_sales_todos_impl,
|
|
get_sales_todos_impl,
|
|
)
|
|
from .search_flights import search_flights_impl
|
|
from .generate_a2ui import (
|
|
RENDER_A2UI_TOOL_SCHEMA,
|
|
generate_a2ui_impl,
|
|
build_a2ui_operations_from_tool_call,
|
|
)
|
|
from .schedule_meeting import schedule_meeting_impl
|
|
from .roll_dice import roll_dice_impl
|
|
|
|
__all__ = [
|
|
# Types
|
|
"SalesStage",
|
|
"SalesTodo",
|
|
"Flight",
|
|
"WeatherResult",
|
|
# Weather
|
|
"get_weather_impl",
|
|
# Query data
|
|
"query_data_impl",
|
|
# Sales todos
|
|
"INITIAL_TODOS",
|
|
"manage_sales_todos_impl",
|
|
"get_sales_todos_impl",
|
|
# Flight search (fixed-schema A2UI)
|
|
"search_flights_impl",
|
|
# Dynamic A2UI
|
|
"RENDER_A2UI_TOOL_SCHEMA",
|
|
"generate_a2ui_impl",
|
|
"build_a2ui_operations_from_tool_call",
|
|
# Schedule meeting (HITL)
|
|
"schedule_meeting_impl",
|
|
# Dice roll
|
|
"roll_dice_impl",
|
|
]
|