Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(threads): add agent-requested handoffs #7487

Closedmrmg(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7487/headopened View on GitHub

Showing 28 changed files with 158 additions and 1 deletion (loading 25).

x
0 of 28 viewed, 28 left
15 additions and 0 deletionsapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -14,6 +14,7 @@
RuntimeMode,
ServerConfig as T3ServerConfig,
ThreadId,
+ ThreadHandoff,
UserInputQuestion,
} from "@t3tools/contracts";
import * as Haptics from "expo-haptics";
@@ -77,6 +78,7 @@
ThreadComposer,
} from "./ThreadComposer";
import { ThreadFeed } from "./ThreadFeed";
+import { ThreadHandoffCard } from "./ThreadHandoffCard";
import type { ThreadContentPresentation } from "./threadContentPresentation";
​
export interface ThreadDetailScreenProps {
@@ -136,6 +138,10 @@
) => void;
readonly onSubmitUserInput: () => Promise<unknown>;
readonly showContent?: boolean;
+ readonly availableHandoffs?: ReadonlyArray<ThreadHandoff>;
+ readonly handoffActionId?: string | null;
+ readonly onOpenHandoff?: (handoff: ThreadHandoff) => void;
+ readonly onDismissHandoff?: (handoff: ThreadHandoff) => void;
​
function latestStreamingAssistantMessage(