Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

392 B
Raw Blame
import { taskResultState } from '@lobechat/builtin-tool-task';

export const taskResult = (
  task: { id: string; identifier: string },
  content: string,
  extra: Record<string, unknown> = {},
) => ({
  content,
  state: taskResultState(task, extra),
  success: true,
});

export const taskResultLabel = (task: { id: string; identifier: string }) =>
  `${task.identifier} (id: ${task.id})`;