Skip to content

Context7 Platform -- Up-to-date docs for AI agents

227 B
Raw Blame
import type { AgentToolResult } from "@earendil-works/pi-coding-agent";

export function toToolResult(text: string): AgentToolResult<undefined> {
  return {
    content: [{ type: "text", text }],
    details: undefined,
  };
}