Standard
Introduction
Using Standard Run Mode
from swiftagent import SwiftAgent
import asyncio
agent = SwiftAgent()
async def main():
await agent.run('What\'s the color of an apple?')
#or
#await agent.run('What\'s the color of an apple?', type_='standard')
#or
#from swiftagent.application import ApplicationType
#await agent.run('What\'s the color of an apple?', type_=ApplicationType.STANDARD)
asyncio.run(main())Last updated