mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
534cd1efa7
Per-framework fixes to pass D5 e2e-deep probes: - agno: deduplicate agent_server routes - claude-sdk-python: handle ParsedContentBlockStopEvent (SDK v0.97+) - claude-sdk-typescript: remove orphan tool-rendering page - crewai-crews: add backend tool_rendering agent + shared_state fix - google-adk: add AGUIToolset to all ADK agents for frontend tools - langgraph-typescript: remove stale import - langroid: emit ToolCallResultEvent for backend tools + fix adapter - llamaindex: v2 provider import, book_call stub, PYTHONPATH fix - ms-agent-python: disable Responses API store for aimock compat - pydantic-ai: simplify gen-ui page component - spring-ai: raise tool iteration cap (1→5) + fix connection pooling - strands: shared tools symlink + requirements update
25 lines
599 B
TypeScript
25 lines
599 B
TypeScript
/**
|
|
* Schedule meeting tool implementation — HITL gated.
|
|
*
|
|
* TypeScript equivalent of showcase/shared/python/tools/schedule_meeting.py.
|
|
*/
|
|
|
|
export interface ScheduleMeetingResult {
|
|
status: "pending_approval";
|
|
reason: string;
|
|
duration_minutes: number;
|
|
message: string;
|
|
}
|
|
|
|
export function scheduleMeetingImpl(
|
|
reason: string,
|
|
durationMinutes: number = 30,
|
|
): ScheduleMeetingResult {
|
|
return {
|
|
status: "pending_approval",
|
|
reason,
|
|
duration_minutes: durationMinutes,
|
|
message: `Meeting request: ${reason} (${durationMinutes} min). Awaiting user time selection.`,
|
|
};
|
|
}
|