Error in ai agent builder

There are few potential solutions to consider here. A possible solution would involve uploading a pdf document to an object (either as mediaset or attachment property). This will then allow you to process the document via function, and also add it as a tool in your AIP Agent, incase you need the interactive functionality. Below you can find a high-level architecture for such solution: