Skip to content

WriteTextFileRequest

Base classes

Name Children Inherits
BaseAgentRequest
aclientp.schema.agent_requests
Base class for all agent requests.

⋔ Inheritance diagram

graph TD
  95970861854624["agent_requests.WriteTextFileRequest"]
  95970861850336["agent_requests.BaseAgentRequest"]
  95970858197488["base.Request"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970861850336 --> 95970861854624
  95970858197488 --> 95970861850336
  95970862258240 --> 95970858197488
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: BaseAgentRequest

Request to write content to a text file.

Only available if the client supports the fs.writeTextFile capability.

Source code in src/aclientp/schema/agent_requests.py
class WriteTextFileRequest(BaseAgentRequest):
    """Request to write content to a text file.

    Only available if the client supports the `fs.writeTextFile` capability.
    """

    content: str
    """The text content to write to the file."""

    path: str
    """Absolute path to the file to write."""

content instance-attribute

content: str

The text content to write to the file.

path instance-attribute

path: str

Absolute path to the file to write.

:fa-brands-github: Show source on GitHub