Standard
Introduction
SwiftAgent in standard mode runs similarly to most other agent frameworks (eg. AutoGen, CrewAI, etc). Standard mode is useful for quick prototyping or straightforward, single-instance deployments. Agents run locally, perfect for internal business tools, local development, or small-scale proof-of-concept projects.
By default, SwiftAgent's default run mode is standard.
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