27 lines
599 B
Julia
27 lines
599 B
Julia
"""
|
|
tools/write.jl - File write tool
|
|
|
|
This module provides the file write tool for AgentCore.
|
|
"""
|
|
|
|
module Write
|
|
|
|
using ..Types: *
|
|
|
|
function createWriteTool{TContext}() where TContext
|
|
return AgentTool(
|
|
"write",
|
|
"write",
|
|
"Write content to a file.",
|
|
Dict{String, Any}(),
|
|
(tool_call_id, params, signal, on_update, context) -> begin
|
|
# TODO: Implement write execution
|
|
return AgentToolResult([TextContent("File written successfully")], nothing, nothing, nothing, nothing)
|
|
end,
|
|
nothing,
|
|
nothing,
|
|
)
|
|
end
|
|
|
|
end
|