Skip to content

Commit 7c10440

Browse files
committed
update agent factory telephony server code
1 parent c5f697d commit 7c10440

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/open-source/agent-factory.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ class MyAgentFactory(AbstractAgentFactory):
3535
Then, in your app, you can connect the agent to the app:
3636

3737
```python
38+
from vocode.streaming.telephony.server.base import TelephonyServer
39+
from vocode.streaming.agent.my_agent_factory import MyAgentFactory
3840

3941
telephony_server = TelephonyServer(
40-
agent_factory=MyAgentFactory(
41-
agent_config=agent_config, action_factory=action_factory),
42+
agent_factory=MyAgentFactory()
4243
...
4344
)
4445
```

0 commit comments

Comments
 (0)