Skip to content

Commit

Permalink
Merge branch 'feature/vf-mounts-prompts' of https://github.com/dcSpar…
Browse files Browse the repository at this point in the history
…k/shinkai-node into feature/vf-mounts-prompts
  • Loading branch information
acedward committed Jan 14, 2025
2 parents 0114317 + 083b4f2 commit 8e83e8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl JobPromptGenerator {

if !additional_files.is_empty() {
prompt.add_content(
format!("<current_files>\n{}\n</current_files>\n", additional_files.join("\n")),
format!("<current_files>\n{}\n</current_files>\n", all_files.join("\n")),
SubPromptType::ExtraContext,
97,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ impl PythonTool {
files_tool_router_key: Option<String>,
mounts: Option<Vec<String>>,
) -> Result<RunResult, ToolError> {
// Construct the list of asset files that should be made available to the Python tool.
// These files are typically static resources or dependencies that the tool needs to function,
// such as model files, configuration files, or other data files. The paths are resolved
// relative to the tool's storage directory in the node's filesystem.
let assets_files = match files_tool_router_key {
Some(tool_router_key) => {
let tool_key = ToolRouterKey::from_string(&tool_router_key)?;
Expand Down

0 comments on commit 8e83e8c

Please sign in to comment.