Skip to content

Commit

Permalink
first implementation still wip
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jul 14, 2023
1 parent 45fad9b commit 25a640f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion examples/plot_sin_wave.py
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# TODO: ask the agent to plot a sin wave and check if an image in the output and show it to the user with PIL.show()
from codeinterpreterapi import CodeInterpreterSession


async def main():
async with CodeInterpreterSession() as session:
user_request = "Plot a sin wave and show it to me."
output = await session.generate_response(user_request)

print(output.content)
print(output.files)


if __name__ == "__main__":
import asyncio
asyncio.run(main())

0 comments on commit 25a640f

Please sign in to comment.