- Updated the agent's Stream and response processing methods to return and handle *context.Response directly, eliminating the need for type assertions. - Simplified test cases by removing unnecessary type conversions and directly accessing response fields. - Enhanced the extraction of data from Next hook responses, ensuring more robust handling of custom data structures. - Improved overall code readability and maintainability by streamlining response handling logic across various components. |
||
|---|---|---|
| .. | ||
| agent.go | ||
| agent_test.go | ||
| handler.go | ||
| mcp.go | ||
| mcp_test.go | ||
| serpapi.go | ||
| serpapi_test.go | ||
| serper.go | ||
| serper_test.go | ||
| tavily.go | ||
| tavily_test.go | ||