Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@
//
"name": "C++ - Task",
"type": "cppvsdbg",
"program": "${workspaceFolder}/build/Engine/engine.exe",
"program": "${workspaceFolder}/dist/server/engine.exe",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "externalTerminal",
"cwd": "${workspaceRoot}/dist/server",
"args": [
//-- Options
"--monitor=App",
"testdata/tasks/1000-pipeline/80-pipelineArg.json"
"ai/eaas.py"
]
},
//--------------------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions packages/server/engine-lib/engLib/store/core/binder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
namespace engine::store {

/**
* @brief Returns true if we are running a pipeling task
* @brief Returns true if we are running a pipeline task
*/
bool Binder::isPipeline() noexcept {
return m_pInstance->endpoint->isPipeline();
Expand Down Expand Up @@ -397,7 +397,7 @@ Error Binder::writeQuestions(const pybind11::object &question) noexcept {

if (m_pInstance->endpoint->config.pipelineTraceLevel >= PIPELINE_TRACE_LEVEL::FULL) {
engine::python::LockPython lock;
data["questions"] = engine::python::pyjson::dictToJson(question);
data["questions"] = engine::python::pyjson::dictToJson(question.attr("model_dump")());
}

return callMethods(this, "questions", call, data);
Expand All @@ -417,7 +417,7 @@ Error Binder::writeAnswers(const pybind11::object &answers) noexcept {

if (m_pInstance->endpoint->config.pipelineTraceLevel >= PIPELINE_TRACE_LEVEL::FULL) {
engine::python::LockPython lock;
data["answers"] = engine::python::pyjson::dictToJson(answers);
data["answers"] = engine::python::pyjson::dictToJson(answers.attr("model_dump")());
}
return callMethods(this, "answers", call, data);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void IServiceFilterInstance::cb_control(std::string& classType,
enterTrace["lane"] = "invoke";
enterTrace["invoke"] = classType.c_str();

if (traceLevel >= PIPELINE_TRACE_LEVEL::FULL) enterTrace["data"] = engine::python::pyjson::dictToJson(control);
if (traceLevel >= PIPELINE_TRACE_LEVEL::FULL) enterTrace["data"] = engine::python::pyjson::dictToJson(control.attr("model_dump")());
}

this->pipe->debugger.debugEnter(filter.get(), enterTrace);
Expand All @@ -109,7 +109,7 @@ void IServiceFilterInstance::cb_control(std::string& classType,
leaveTrace["invoke"] = classType.c_str();
leaveTrace["result"] = "continue";

if (traceLevel >= PIPELINE_TRACE_LEVEL::FULL) leaveTrace["data"] = engine::python::pyjson::dictToJson(control);
if (traceLevel >= PIPELINE_TRACE_LEVEL::FULL) leaveTrace["data"] = engine::python::pyjson::dictToJson(control.attr("model_dump")());
}

// And inform we are leaving
Expand All @@ -126,7 +126,7 @@ void IServiceFilterInstance::cb_control(std::string& classType,
leaveTrace["invoke"] = classType.c_str();
leaveTrace["result"] = "skip";

if (traceLevel >= PIPELINE_TRACE_LEVEL::FULL) leaveTrace["data"] = engine::python::pyjson::dictToJson(control);
if (traceLevel >= PIPELINE_TRACE_LEVEL::FULL) leaveTrace["data"] = engine::python::pyjson::dictToJson(control.attr("model_dump")());
}

// And inform we are leaving
Expand Down
Loading