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.

Using Standard Run Mode

SwiftAgent is an async-only framework to optimize for performance. All modes run in async mode.

python
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