Commit 9abd2a3
fix: improve sequential tool calling for non-streaming responses
- Fixed Ollama handling to properly separate streaming/non-streaming modes
- Added robust error handling for response extraction
- Fixed test file to use correct stream parameter
- Ensures tool outputs are processed by LLM in non-streaming mode
Addresses review feedback on PR #832
Co-authored-by: Mervin Praison <[email protected]>1 parent 48d0f8d commit 9abd2a3
File tree
2 files changed
+27
-15
lines changed- src/praisonai-agents/praisonaiagents/llm
2 files changed
+27
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
868 | | - | |
869 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
870 | 885 | | |
871 | 886 | | |
872 | 887 | | |
873 | 888 | | |
874 | 889 | | |
875 | | - | |
| 890 | + | |
876 | 891 | | |
877 | 892 | | |
878 | 893 | | |
879 | | - | |
880 | | - | |
881 | | - | |
| 894 | + | |
882 | 895 | | |
883 | | - | |
884 | | - | |
| 896 | + | |
| 897 | + | |
885 | 898 | | |
886 | 899 | | |
887 | 900 | | |
888 | | - | |
| 901 | + | |
889 | 902 | | |
890 | | - | |
891 | | - | |
892 | | - | |
| 903 | + | |
| 904 | + | |
893 | 905 | | |
894 | 906 | | |
895 | 907 | | |
| |||
988 | 1000 | | |
989 | 1001 | | |
990 | 1002 | | |
991 | | - | |
| 1003 | + | |
992 | 1004 | | |
993 | 1005 | | |
994 | 1006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments