AgentApp¶
- class AgentApp[소스]¶
기반 클래스:
objectFlower AgentApp.
예제
Define an AgentApp with a single main function:
app = AgentApp() @app.main() def main(agent: AgentSession, context: Context) -> None: print("AgentApp running")
메소드
main()Return a decorator that registers the main fn with the agent app.
- main() Callable[[Callable[[AgentSession, Context], None]], Callable[[AgentSession, Context], None]][소스]¶
Return a decorator that registers the main fn with the agent app.
예제
app = AgentApp() @app.main() def main(agent: AgentSession, context: Context) -> None: print("AgentApp running")