Files
letta-server/letta/functions/types.py
Kian Jones b8e9a80d93 merge this (#4759)
* wait I forgot to comit locally

* cp the entire core directory and then rm the .git subdir
2025-09-17 15:47:40 -07:00

19 lines
741 B
Python

from typing import Optional
from pydantic import BaseModel, Field
class SearchTask(BaseModel):
query: str = Field(description="Search query for web search")
question: str = Field(description="Question to answer from search results, considering full conversation context")
class FileOpenRequest(BaseModel):
file_name: str = Field(description="Name of the file to open")
offset: Optional[int] = Field(
default=None, description="Optional offset for starting line number (0-indexed). If not specified, starts from beginning of file."
)
length: Optional[int] = Field(
default=None, description="Optional number of lines to view from offset (inclusive). If not specified, views to end of file."
)