feat: finish continuous authoring workspace
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import type { AgentToolName } from "./tools.js";
|
||||
import type { AgentToolName, PreparedAuthoringToolName } from "./tools.js";
|
||||
|
||||
export type AgentMessageToolName = AgentToolName | PreparedAuthoringToolName;
|
||||
|
||||
export type AgentRole = "user" | "assistant";
|
||||
|
||||
@@ -9,13 +11,13 @@ export type PresentationToolAction =
|
||||
|
||||
export type AgentToolCall = {
|
||||
readonly id: string;
|
||||
readonly name: AgentToolName;
|
||||
readonly name: AgentMessageToolName;
|
||||
readonly input: unknown;
|
||||
};
|
||||
|
||||
export type AgentToolResult = {
|
||||
readonly callId: string;
|
||||
readonly name: AgentToolName;
|
||||
readonly name: AgentMessageToolName;
|
||||
readonly status: "success" | "failure";
|
||||
readonly output: unknown;
|
||||
};
|
||||
@@ -56,7 +58,7 @@ export const agentTextMessage = (id: string, role: AgentRole, text: string): Age
|
||||
|
||||
export const agentToolCallPart = (
|
||||
id: string,
|
||||
name: AgentToolName,
|
||||
name: AgentMessageToolName,
|
||||
input: unknown,
|
||||
): AgentMessagePart => ({
|
||||
type: "tool-call",
|
||||
@@ -65,7 +67,7 @@ export const agentToolCallPart = (
|
||||
|
||||
export const agentToolResultPart = (
|
||||
callId: string,
|
||||
name: AgentToolName,
|
||||
name: AgentMessageToolName,
|
||||
status: "success" | "failure",
|
||||
output: unknown,
|
||||
): AgentMessagePart => ({
|
||||
|
||||
@@ -5,6 +5,23 @@ export type WorkflowToolName =
|
||||
| "readRunTrace"
|
||||
| "runWorkflowCommand";
|
||||
|
||||
/** Names emitted by the prepared authoring recording for its operation trace. */
|
||||
export type PreparedAuthoringToolName =
|
||||
| "workflow.sources.list"
|
||||
| "workflow.capabilities.list"
|
||||
| "workflow.capabilities.inspect"
|
||||
| "wf schema"
|
||||
| "workflow.draft_workspaces.create_from_capability"
|
||||
| "workflow.draft_workspaces.add_step_from_capability"
|
||||
| "workflow.draft_workspaces.get"
|
||||
| "workflow.draft_workspaces.validate"
|
||||
| "workflow.draft_workspaces.set_step_output_map"
|
||||
| "workflow.draft_workspaces.compile"
|
||||
| "workflow.draft_workspaces.create_artifact"
|
||||
| "workflow.artifacts.inspect"
|
||||
| "workflow.deployments.save"
|
||||
| "workflow.deployments.validate";
|
||||
|
||||
export type PresentationToolName =
|
||||
| "selectWorkflowNode"
|
||||
| "focusOperation"
|
||||
|
||||
Reference in New Issue
Block a user