Integrate AI agents into your Flutter applications
pubspec.yaml
:
Info.plist
:Podfile
, since we depend on permission_handler
to manage permissions and audio_session
to manage audio sessions.AndroidManifest.xml
:android/gradle.properties
(unless they’re already there):android/app/build.gradle
:AgentState
: The agent can be in one of four states:idle
: Not connected to a conversationconnecting
: In the process of establishing a connectionconnected
: Connected and ready to conversedisconnecting
: In the process of ending a conversationAgent
also exposes ValueListenable
s which you can listen to for changes in the agent’s state.AgentCallbackConfig
to the Agent
constructor to handle events from the agent.sendDeveloperMessage
to keep the agent updated on app stateValueListenable
s to give clear feedback on conversation state