Skip to content

Commit 8518bef

Browse files
committed
Fix Agents.md
1 parent 94b2ccd commit 8518bef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ When adding new AI services:
166166
### Frame Processing
167167
For custom processors:
168168
1. Inherit from `FrameProcessor`
169-
2. Implement `process_frame()` method
169+
2. Implement `process_frame()` method. ALWAYS explicitly call `await super().process_frame(frame, direction)` at the top of this method.
170170
3. Handle frame direction (FrameDirection.UPSTREAM/DOWNSTREAM)
171171
4. Add proper type hints and docstrings
172172

@@ -211,8 +211,10 @@ For new transport layers:
211211
@transport.event_handler("on_error")
212212
async def on_error(transport, error):
213213
logger.error(f"Transport error: {error}")
214-
# Implement graceful degradation
215-
await transport.send_message("I'm experiencing technical difficulties.")
214+
215+
# Shutdown the pipeline
216+
await task.queue_frame(EndFrame())
217+
216218
```
217219

218220
### Service Configuration
@@ -279,7 +281,5 @@ Types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`
279281
- **Use IDE integration** for Ruff formatting
280282

281283
### Getting Help
282-
- **Discord:** [Join our Discord](https://discord.gg/pipecat)
283284
- **Documentation:** [docs.pipecat.ai](https://docs.pipecat.ai)
284285
- **Issues:** [GitHub Issues](https://github.com/pipecat-ai/pipecat/issues)
285-
- **Discussions:** [GitHub Discussions](https://github.com/pipecat-ai/pipecat/discussions)

0 commit comments

Comments
 (0)