sarim commited on
Commit
63bc27b
·
1 Parent(s): 591ab37

more testing

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -86,16 +86,16 @@ async def ppt_content(data):
86
  message_history: list[ModelMessage] = []
87
  # for i, chunk in enumerate(listOfString):
88
  # print(f"Chunk {i}:\n{chunk}\n")
89
- @agent.tool
90
- async def agentTooled(ctx: RunContext)-> str:
91
- """
92
- This is all the text from a pdf file that user has uploaded
93
 
94
- """
95
- return listOfString[0]
96
 
97
 
98
- result = agent.run_sync(user_prompt = f"Create me a powerpoint presentation from 'agentTooled' return value",
99
  message_history = message_history,
100
 
101
  )
 
86
  message_history: list[ModelMessage] = []
87
  # for i, chunk in enumerate(listOfString):
88
  # print(f"Chunk {i}:\n{chunk}\n")
89
+ # @agent.tool
90
+ # async def agentTooled(ctx: RunContext)-> str:
91
+ # """
92
+ # This is all the text from a pdf file that user has uploaded
93
 
94
+ # """
95
+ # return listOfString[0]
96
 
97
 
98
+ result = agent.run_sync(user_prompt = f"Create me a powerpoint presentation from {listOfString[0]+listOfString[1]}",
99
  message_history = message_history,
100
 
101
  )