MCPcopy Index your code

hub / github.com/run-llama/llama_cloud_services / functions

Functions785 in github.com/run-llama/llama_cloud_services

↓ 19 callersMethoddelete
* Delete all matching agent data, returns the total number of deleted items
ts/llama_cloud_services/src/beta/agent/client.ts:120
↓ 16 callersMethodextract
Run stateless extraction and wait for results (synchronous version). Args: data_schema: The schema defining what data to extract
py/llama_cloud_services/extract/extract.py:999
↓ 15 callersFunctionsleep
(ms: number)
ts/llama_cloud_services/src/utils.ts:101
↓ 15 callersMethodupload_file
( self, file_path: str, external_file_id: Optional[str] = None )
py/llama_cloud_services/files/client.py:51
↓ 14 callersMethodloadData
(filePath?: string)
ts/llama_cloud_services/src/reader.ts:605
↓ 13 callersFunctionaugment_async_errors
Context manager to add helpful information for errors due to nested event loops.
py/llama_cloud_services/utils.py:102
↓ 12 callersMethod_get_mime_type
Determine MIME type for a file based on filename or path.
py/llama_cloud_services/extract/extract.py:791
↓ 11 callersMethodawait_for_completion
Block until the requested ingestion work is finished. - If `file_ids` is given → wait for those files. - If `doc_ids` is giv
py/llama_cloud_services/index/base.py:399
↓ 10 callersMethod_format_markdown_for_notebook
Format markdown text for Jupyter notebook display by escaping dollar signs.
py/llama_cloud_services/parse/types.py:392
↓ 10 callersMethodaparse
Parse the file and return a JobResult object instead of Document objects. This method is similar to aload_data but returns JobResult
py/llama_cloud_services/parse/base.py:1514
↓ 10 callersFunctioncalculate_overall_confidence
Calculate the overall confidence score for the extracted data.
py/llama_cloud_services/beta/agent_data/schema.py:523
↓ 9 callersMethodaload_data
Load data from the input path. File(s) which were partitioned before parsing will be loaded as a single re-assembled Document.
py/llama_cloud_services/parse/base.py:1425
↓ 9 callersFunctionparse_extracted_field_metadata
( field_metadata: dict[str, Any], )
py/llama_cloud_services/beta/agent_data/schema.py:246
↓ 9 callersMethodwait_for_completion
Block until the requested ingestion work is finished. - If `file_ids` is given → wait for those files. - If `doc_ids` is giv
py/llama_cloud_services/index/base.py:312
↓ 8 callersFunction_run_command
Run a command, streaming output to the console, and raise on failure.
scripts/changeset-version.py:30
↓ 8 callersMethodas_retriever
Return a Retriever for this managed index.
py/llama_cloud_services/index/base.py:680
↓ 8 callersMethodfrom_raw
Convert raw API response to typed agent data. Args: raw_data: Raw agent data from the API validator: Pydanti
py/llama_cloud_services/beta/agent_data/schema.py:109
↓ 8 callersFunctionmake_api_request
Make an retrying API request to the LlamaParse API. Args: client: The httpx.AsyncClient to use for the request. url: The URL to r
py/llama_cloud_services/parse/utils.py:270
↓ 7 callersMethod_run_in_thread
Run coroutine in a separate thread to avoid event loop issues
py/llama_cloud_services/extract/extract.py:287
↓ 7 callersMethodacreate_index
Create a new LlamaCloud managed index.
py/llama_cloud_services/index/base.py:550
↓ 7 callersMethodgetPipelineId
( name?: string, projectName?: string, organizationId?: string, )
ts/llama_cloud_services/src/LlamaCloudIndex.ts:155
↓ 7 callersMethodloadJson
* Loads data from a file and returns an array of ParseResult objects. * To be used with resultType "json". * * @param filePathOrContent - Th
ts/llama_cloud_services/src/reader.ts:673
↓ 7 callersMethodload_data
Load data from the input path.
py/llama_cloud_services/parse/base.py:1471
↓ 6 callersMethod_run_in_thread
Run coroutine in a separate thread to avoid event loop issues
py/llama_cloud_services/extract/extract.py:606
↓ 6 callersMethodadd_index
( self, index: LlamaCloudIndex, name: Optional[str] = None, description: Optio
py/llama_cloud_services/index/composite_retriever.py:109
↓ 6 callersMethodadownload_region_result
Download a region result (either region data or cell metadata). Args: job_id: ID of the job region_id: ID of the regi
py/llama_cloud_services/beta/sheets/client.py:428
↓ 6 callersMethodfrom_documents
Build a LlamaCloud managed index from a sequence of documents.
py/llama_cloud_services/index/base.py:613
↓ 6 callersMethodfrom_extraction_result
Create an ExtractedData instance from an extraction result.
py/llama_cloud_services/beta/agent_data/schema.py:436
↓ 6 callersMethodloadDataAsContent
* Loads data from a file and returns an array of Document objects. * To be used with resultType "text" or "markdown". * * @param fileContent
ts/llama_cloud_services/src/reader.ts:633
↓ 6 callersFunctionpartition_pages
Yield partitioned target_pages segments.
py/llama_cloud_services/parse/utils.py:325
↓ 5 callersMethodaclassify_file_ids
Classify a list of files by their IDs. Note that even if a job fails, some of the files may have been classified successfully.
py/llama_cloud_services/beta/classifier/client.py:112
↓ 5 callersMethodaextract
Run stateless extraction and wait for results. Args: data_schema: The schema defining what data to extract config: Th
py/llama_cloud_services/extract/extract.py:965
↓ 5 callersMethodaextract_regions
High-level method to parse a spreadsheet file. This method handles the entire workflow: 1. Upload the file 2. Create a parsin
py/llama_cloud_services/beta/sheets/client.py:512
↓ 5 callersFunctioncheck_for_updates
Check if an SDK update is available. Args: client: HTTPX client to use. quiet: If False, update availability will also be printed
py/llama_cloud_services/utils.py:68
↓ 5 callersFunctioncreate_extract_run
( id: str = "extract-123", job_id: str = "job-123", data: Dict[str, Any] = {"name": "John Doe", "a
py/unit_tests/beta/agent/test_agent_data_schema.py:409
↓ 5 callersFunctioncreate_file
( id: str = "file-456", name: str = "resume.pdf", external_file_id: str = "external-file-id",
py/unit_tests/beta/agent/test_agent_data_schema.py:393
↓ 5 callersMethodcreate_index
Create a new LlamaCloud managed index.
py/llama_cloud_services/index/base.py:487
↓ 5 callersMethoddelete_agent
Delete an extraction agent by ID. Args: agent_id (str): ID of the extraction agent to delete
py/llama_cloud_services/extract/extract.py:758
↓ 5 callersFunctionexpand_target_pages
Yield all values in target_pages.
py/llama_cloud_services/parse/utils.py:307
↓ 5 callersMethodextract
( dataSchema: | { [key: string]: | { [key: string]: unknown } | Ar
ts/llama_cloud_services/src/LlamaExtract.ts:163
↓ 5 callersFunctioninitService
({ apiKey, baseUrl }: ClientParams = {})
ts/llama_cloud_services/src/utils.ts:22
↓ 5 callersMethodparse
Parse the file and return a JobResult object instead of Document objects. This method is similar to load_data but returns JobResult
py/llama_cloud_services/parse/base.py:1591
↓ 5 callersMethodupload_bytes
(self, bytes: bytes, external_file_id: str)
py/llama_cloud_services/files/client.py:59
↓ 4 callersFunctioncheck_extra_params
( model_cls: Type[BaseModel], data: Dict[str, Any] )
py/llama_cloud_services/utils.py:23
↓ 4 callersMethodcreate
Create a new ExtractedData instance with sensible defaults. Args: extracted_data: The extracted data payload
py/llama_cloud_services/beta/agent_data/schema.py:397
↓ 4 callersMethodget_agent
Get extraction agents by name or extraction agent ID. Args: name (Optional[str]): Filter by name extraction_agent_id
py/llama_cloud_services/extract/extract.py:672
↓ 4 callersFunctionhandleFailedAttempt
( error: FailedAttemptError, jobId: string, verbose: boolean, )
ts/llama_cloud_services/src/reader.ts:36
↓ 4 callersFunctionlistProjectsApiV1ProjectsGet
( options?: Options<ListProjectsApiV1ProjectsGetData, ThrowOnError>, )
ts/llama_cloud_services/src/client/sdk.gen.ts:964
↓ 4 callersMethodlist_agents
List all available extraction agents.
py/llama_cloud_services/extract/extract.py:730
↓ 4 callersMethodlist_extraction_runs
List extraction runs for the extraction agent. Returns: PaginatedExtractRunsResponse: Paginated list of extraction runs
py/llama_cloud_services/extract/extract.py:487
↓ 4 callersFunctionmake_agent_data
(data: Dict[str, Any])
py/unit_tests/beta/agent/test_agent_data_client_with_mocks.py:88
↓ 4 callersFunctionpage_screenshot_nodes_to_node_with_score
( client: LlamaCloud, raw_image_nodes: Optional[List[PageScreenshotNodeWithScore]], project_id: st
py/llama_cloud_services/index/api_utils.py:257
↓ 4 callersMethodtransformResponse
* Transform API response to typed data
ts/llama_cloud_services/src/beta/agent/client.ts:232
↓ 4 callersFunctionuploadFile
({ filePath, fileContent, fileName, project_id, organization_id, client, maxRetriesOnError = 10,
ts/llama_cloud_services/src/fileUpload.ts:26
↓ 4 callersMethodupload_content
Upload content from various input types or fetch an already-uploaded file. Args: file_input: The content to upload. Can
py/llama_cloud_services/files/client.py:103
↓ 4 callersMethodupload_file_from_url
Upload a file from a URL to the index.
py/llama_cloud_services/index/base.py:1002
↓ 3 callersMethod_check_for_updates
(self)
py/llama_cloud_services/parse/base.py:675
↓ 3 callersFunction_extraction_config_warning
(config: ExtractConfig)
py/llama_cloud_services/extract/extract.py:204
↓ 3 callersMethod_get_async_client
Get or create the async httpx client
py/llama_cloud_services/beta/sheets/client.py:126
↓ 3 callersMethod_get_default_params
Get default query parameters for API requests
py/llama_cloud_services/beta/sheets/client.py:116
↓ 3 callersMethod_get_headers
Get common headers for API requests
py/llama_cloud_services/beta/sheets/client.py:135
↓ 3 callersMethod_get_job_result_with_error_handling
Get job result with error handling based on ignore_errors setting.
py/llama_cloud_services/parse/base.py:1236
↓ 3 callersFunction_is_reasoning_field
(field_name: str, field_value: Any)
py/llama_cloud_services/beta/agent_data/schema.py:256
↓ 3 callersMethod_parse_one
( self, file_path: FileInput, extra_info: Optional[dict] = None, fs: Optional[
py/llama_cloud_services/parse/base.py:1255
↓ 3 callersMethod_parse_one_unpartitioned
Create one parse job and wait for the result.
py/llama_cloud_services/parse/base.py:1282
↓ 3 callersMethodaclassify
Classify one or more files from various input types. Args: rules: The rules to use for classification. files
py/llama_cloud_services/beta/classifier/client.py:167
↓ 3 callersMethodaget_image_data
Get image data by name using the job ID. Args: image_name: The name of the image to fetch Returns:
py/llama_cloud_services/parse/types.py:699
↓ 3 callersMethodaget_image_documents
Get the image documents from the job. Args: include_screenshot_images (bool): Whether to include screens
py/llama_cloud_services/parse/types.py:593
↓ 3 callersMethodaget_json
Load data from the input path.
py/llama_cloud_services/parse/base.py:1649
↓ 3 callersMethodasave_image
Save an image to a file. Args: image_name: The name of the image to fetch output_dir: The directory to save
py/llama_cloud_services/parse/types.py:745
↓ 3 callersMethodclassify
( rules: ClassifierRule[], configuration: ClassifyParsingConfiguration, { fileContents,
ts/llama_cloud_services/src/LlamaClassify.ts:37
↓ 3 callersMethodcreate_agent
Create a new extraction agent. Args: name (str): The name of the extraction agent data_schema (SchemaInput): The data
py/llama_cloud_services/extract/extract.py:616
↓ 3 callersFunctiongetProjectId
( projectName: string, organizationId?: string, )
ts/llama_cloud_services/src/utils.ts:48
↓ 3 callersMethodgetProjectId
( projectName?: string, organizationId?: string, )
ts/llama_cloud_services/src/LlamaCloudIndex.ts:167
↓ 3 callersMethodget_file
(self, file_id: str)
py/llama_cloud_services/files/client.py:35
↓ 3 callersMethodget_markdown_documents
Get the markdown documents from the job. Args: split_by_page: Whether to split the pages into separate documents
py/llama_cloud_services/parse/types.py:415
↓ 3 callersMethodget_text_documents
Get the documents from the job. Args: split_by_page: Whether to split the pages into separate documents
py/llama_cloud_services/parse/types.py:347
↓ 3 callersFunctionis_jupyter
Check if we're running in a Jupyter environment.
py/llama_cloud_services/parse/utils.py:361
↓ 3 callersFunctionload_test_dotenv
()
py/tests/extract/util.py:9
↓ 3 callersMethodqueue_extraction
Queue extraction jobs using stateless extraction (no agent required). Args: data_schema: The schema defining what data to extract
py/llama_cloud_services/extract/extract.py:918
↓ 3 callersMethodsave
Persist the extraction agent's schema and config to the database. Returns: ExtractionAgent: The updated extraction agent
py/llama_cloud_services/extract/extract.py:331
↓ 3 callersFunctionsearchPipelinesApiV1PipelinesGet
( options?: Options<SearchPipelinesApiV1PipelinesGetData, ThrowOnError>, )
ts/llama_cloud_services/src/client/sdk.gen.ts:1386
↓ 3 callersMethodsplitTextBySeparator
* Splits text into Document objects using the page separator. * * @param text - The text to be split. * @returns An array of Document objects
ts/llama_cloud_services/src/reader.ts:915
↓ 3 callersMethoduntyped_get_item
(self, item_id: str)
py/llama_cloud_services/beta/agent_data/client.py:169
↓ 3 callersMethodupload_buffer
( self, buffer: BinaryIO, external_file_id: str, file_size: int, )
py/llama_cloud_services/files/client.py:62
↓ 2 callersMethod#createJob
* Creates a job for the LlamaParse API. * * @param data - The file data as a Uint8Array. * @param filename - Optional filename for the file.
ts/llama_cloud_services/src/reader.ts:290
↓ 2 callersMethod_aget_json
Load data from the input path.
py/llama_cloud_services/parse/base.py:1619
↓ 2 callersMethod_aload_data
Load data from the input path.
py/llama_cloud_services/parse/base.py:1386
↓ 2 callersMethod_aparse_one
( self, file_path: FileInput, file_name: str, extra_info: Optional[dict] = Non
py/llama_cloud_services/parse/base.py:1486
↓ 2 callersMethod_await_for_resources
Poll `get_status_fn` until every id in `resource_ids` is finished. Args: resource_ids: Iterable of resource ids to watch
py/llama_cloud_services/index/base.py:240
↓ 2 callersFunction_build_get_page_figure_request
( client: Union[LlamaCloud, AsyncLlamaCloud], file_id: str, page_index: int, figure_name: str,
py/llama_cloud_services/index/api_utils.py:175
↓ 2 callersFunction_build_get_page_screenshot_request
( client: Union[LlamaCloud, AsyncLlamaCloud], file_id: str, page_index: int, project_id: str,
py/llama_cloud_services/index/api_utils.py:157
↓ 2 callersMethod_calculate_backoff
Calculate the next backoff interval based on the backoff pattern. Args: current_interval: The current interval in seconds
py/llama_cloud_services/parse/base.py:1161
↓ 2 callersMethod_convert_file_to_file_data
Convert FileInput to FileData or text string for stateless extraction.
py/llama_cloud_services/extract/extract.py:842
↓ 2 callersMethod_get_job_result
( self, job_id: str, result_type: str, verbose: bool = False )
py/llama_cloud_services/parse/base.py:1178
↓ 2 callersFunction_get_run
()
py/llama_cloud_services/extract/extract.py:139
↓ 2 callersMethod_result_nodes_to_node_with_score
( self, composite_retrieval_node: CompositeRetrievedTextNodeWithScore )
py/llama_cloud_services/index/composite_retriever.py:199
↓ 2 callersMethod_result_nodes_to_node_with_score
( self, result_nodes: List[TextNodeWithScore], metadata: Optional[dict] = None )
py/llama_cloud_services/index/retriever.py:131
↓ 2 callersFunction_setup_index_with_file
( client: LlamaCloud, index_name: str, remote_file: Tuple[str, str] )
py/tests/index/test_index.py:59
↓ 2 callersMethod_upload_file
Upload a file from various input types using FileClient.
py/llama_cloud_services/extract/extract.py:309
next →1–100 of 785, ranked by callers