mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-26 03:38:06 +00:00
refactor: simplify parameter
This commit is contained in:
parent
574b7e59ce
commit
a8ba2de579
@ -2,11 +2,8 @@ import type { BaseMessage } from "@langchain/core/messages";
|
||||
|
||||
import type { AgentThread } from "./types";
|
||||
|
||||
export function pathOfThread(thread: AgentThread, includeAssistantId = true) {
|
||||
if (includeAssistantId) {
|
||||
return `/workspace/chats/${thread.thread_id}`;
|
||||
}
|
||||
return `/workspace/chats/${thread.thread_id}`;
|
||||
export function pathOfThread(threadId: string) {
|
||||
return `/workspace/chats/${threadId}`;
|
||||
}
|
||||
|
||||
export function textOfMessage(message: BaseMessage) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user