Commit 48d0f8d
fix: handle non-streaming responses after tool execution for sequential tool calling
- Fixed issue where tool outputs were returned directly to user when stream=False
- Added proper handling for non-streaming responses after tool calls
- Maintains backward compatibility with existing streaming behavior
Fixes #824
Co-authored-by: Mervin Praison <[email protected]>1 parent 246744c commit 48d0f8d
File tree
2 files changed
+75
-12
lines changed- src/praisonai-agents/praisonaiagents/llm
2 files changed
+75
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
948 | | - | |
949 | | - | |
950 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
951 | 968 | | |
952 | 969 | | |
953 | 970 | | |
| |||
959 | 976 | | |
960 | 977 | | |
961 | 978 | | |
962 | | - | |
963 | | - | |
964 | | - | |
| 979 | + | |
965 | 980 | | |
966 | | - | |
967 | | - | |
| 981 | + | |
| 982 | + | |
968 | 983 | | |
969 | 984 | | |
970 | 985 | | |
971 | 986 | | |
972 | | - | |
| 987 | + | |
973 | 988 | | |
974 | 989 | | |
975 | | - | |
976 | | - | |
977 | | - | |
| 990 | + | |
| 991 | + | |
978 | 992 | | |
979 | 993 | | |
980 | 994 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments