Commit f1b4eca
committed
fix(agent): stop writing the tool schemas into the conversation
tool_handling() appended tools_list_dictionary to short_memory under
role=self.agent_name. The same schemas already reach the provider through the
API's tools parameter (LLMManager.build passes tools_list_dictionary to
LiteLLM), so every request carried them twice, attributed to an assistant turn
the assistant never produced, and stored as a list where every other entry is a
string.
Closes kyegomez#19891 parent 8db8662 commit f1b4eca
2 files changed
Lines changed: 29 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
901 | 900 | | |
902 | 901 | | |
903 | 902 | | |
| |||
923 | 922 | | |
924 | 923 | | |
925 | 924 | | |
926 | | - | |
| 925 | + | |
927 | 926 | | |
928 | 927 | | |
929 | 928 | | |
930 | | - | |
| 929 | + | |
931 | 930 | | |
932 | 931 | | |
933 | 932 | | |
934 | 933 | | |
935 | | - | |
| 934 | + | |
936 | 935 | | |
937 | 936 | | |
938 | 937 | | |
| |||
967 | 966 | | |
968 | 967 | | |
969 | 968 | | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | 969 | | |
976 | 970 | | |
977 | 971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
865 | 891 | | |
866 | 892 | | |
867 | 893 | | |
| |||
0 commit comments