alexa
menu

Document Processing

    Show / Hide Table of Contents

    PresentationContentAgentTools Class

    Provides AI agent tools for PowerPoint presentation content operations. Handles text extraction and slide counting.

    Inheritance
    System.Object
    AgentToolBase
    AgentToolBase<IPresentation>
    PresentationContentAgentTools
    Inherited Members
    AgentToolBase<IPresentation>.InMemoryManager
    AgentToolBase<IPresentation>.Mode
    AgentToolBase<IPresentation>.OpenDocument(String, String)
    AgentToolBase<IPresentation>.SaveDocument(String, IPresentation)
    AgentToolBase<IPresentation>.SaveFile(String, Stream)
    AgentToolBase<IPresentation>.StorageManager
    AgentToolBase.GetTools()
    Namespace: Syncfusion.AI.AgentTools.PowerPoint
    Assembly: Syncfusion.DocumentSDK.AI.AgentTools.dll
    Syntax
    public class PresentationContentAgentTools : AgentToolBase<IPresentation>

    Constructors

    PresentationContentAgentTools(DocumentStorageManager)

    Initializes a new instance of the PresentationContentAgentTools class (Mode 2 — DocumentStorage).

    Declaration
    public PresentationContentAgentTools(DocumentStorageManager manager)
    Parameters
    Type Name Description
    DocumentStorageManager manager

    The document storage manager.

    PresentationContentAgentTools(PresentationManager)

    Initializes a new instance of the PresentationContentAgentTools class (Mode 1 — InMemory).

    Declaration
    public PresentationContentAgentTools(PresentationManager manager)
    Parameters
    Type Name Description
    PresentationManager manager

    The presentation manager for managing PowerPoint presentations.

    Methods

    GetSlideCount(String)

    Returns the number of slides in the presentation.

    Declaration
    [Tool(Name = "GetSlideCount", Description = "Returns the number of slides. documentIdOrFilePath: The document ID (InMemory mode) or input file path (DocumentStorage mode).")]
    public AgentToolResult GetSlideCount([ToolParameter(Description = "The document ID (InMemory mode) or input file path (DocumentStorage mode)")] string documentIdOrFilePath)
    Parameters
    Type Name Description
    System.String documentIdOrFilePath

    The document ID (InMemory mode) or input file path (DocumentStorage mode).

    Returns
    Type Description
    AgentToolResult

    Result containing the number of slides.

    GetText(String)

    Gets the PowerPoint presentation content as text.

    Declaration
    [Tool(Name = "GetText", Description = "Gets the PowerPoint presentation content as text. documentIdOrFilePath: The document ID (InMemory mode) or input file path (DocumentStorage mode).")]
    public AgentToolResult GetText([ToolParameter(Description = "The document ID (InMemory mode) or input file path (DocumentStorage mode)")] string documentIdOrFilePath)
    Parameters
    Type Name Description
    System.String documentIdOrFilePath

    The document ID (InMemory mode) or input file path (DocumentStorage mode).

    Returns
    Type Description
    AgentToolResult

    Result containing the text content of the presentation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved