feat(agent): register ABI workflow state transitions and cancellation
This commit is contained in:
1 parent
06e61efc51
commit
1e1f05c087
1 file changed
+9
@@ -18,6 +18,7 @@ mod resume;
|
||||
mod route;
|
||||
mod sandbox;
|
||||
mod tools;
|
||||
mod workflow;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::ffi::CString;
|
||||
@@ -843,6 +844,10 @@ kb_ffi!(agent_context_scope, context_scope::project, "agent_context_scope");
|
||||
kb_ffi!(agent_input_open, input::input_open, "agent_input_open");
|
||||
kb_ffi!(agent_input_resume, input::input_resume, "agent_input_resume");
|
||||
kb_ffi!(agent_parallel_report, parallel::report, "agent_parallel_report");
|
||||
kb_ffi!(agent_workflow_open, workflow::open, "agent_workflow_open");
|
||||
kb_ffi!(agent_workflow_next, workflow::next, "agent_workflow_next");
|
||||
kb_ffi!(agent_workflow_commit, workflow::commit, "agent_workflow_commit");
|
||||
kb_ffi!(agent_workflow_cancel, workflow::cancel, "agent_workflow_cancel");
|
||||
kb_ffi!(agent_error_make, error::make_error, "agent_error_make");
|
||||
kb_ffi!(agent_error_decide_retry, error::decide_retry, "agent_error_decide_retry");
|
||||
kb_ffi!(agent_tools_register, tools::tools_register, "agent_tools_register");
|
||||
@@ -977,6 +982,10 @@ pub unsafe extern "C" fn marqdo_plugin_init(host: *const MarqdoHostApi) -> c_int
|
||||
("agent_input_open", "id,question,options,source_revision", agent_input_open),
|
||||
("agent_input_resume", "id,reply,source_revision", agent_input_resume),
|
||||
("agent_parallel_report", "results", agent_parallel_report),
|
||||
("agent_workflow_open", "id,steps,source_revision", agent_workflow_open),
|
||||
("agent_workflow_next", "id,source_revision", agent_workflow_next),
|
||||
("agent_workflow_commit", "id,step_id,response,source_revision", agent_workflow_commit),
|
||||
("agent_workflow_cancel", "id,source_revision", agent_workflow_cancel),
|
||||
("agent_error_make", "code,message,category", agent_error_make),
|
||||
("agent_error_decide_retry", "error,attempts,effect_class", agent_error_decide_retry),
|
||||
("agent_tools_register", "spec,specs", agent_tools_register),
|
||||
|
||||
Reference in new issue
Block a user