llm_operate_file

llm_operate_file: File Management Operations

Uses the language model to perform file operations based on user instructions.

def llm_operate_file(
    agent_name: str, 
    messages: List[Dict[str, Any]], 
    tools: List[Dict[str, Any]] = None, 
    base_url: str = aios_kernel_url,
    llms: List[Dict[str, Any]] = None
) -> LLMResponse

Parameters:

  • agent_name: Identifier for the agent making the request

  • messages: List of message dictionaries

  • tools: Optional list of tools (usually not needed for file operations)

  • base_url: API endpoint URL

  • llms: Optional list of LLM configurations

Returns:

  • LLMResponse object containing file operation results

Example:

Common Message Formats

All functions accept messages in the following format:

Last updated