Commit f0e1113
[Conversation API - Alpha2] Add new tool calling capability (dapr#822)
* initial
Signed-off-by: Filinto Duran <[email protected]>
* fixes after proto change upstream
Signed-off-by: Filinto Duran <[email protected]>
* minor name changes and cleanup unused function
Signed-off-by: Filinto Duran <[email protected]>
* refactors, updates to readme, linting
Signed-off-by: Filinto Duran <[email protected]>
* feedback
Signed-off-by: Filinto Duran <[email protected]>
* feedback, updates
Signed-off-by: Filinto Duran <[email protected]>
* fix import in examples
Signed-off-by: Filinto Duran <[email protected]>
* cleanup, import, lint, more conversation helpers
Signed-off-by: Filinto Duran <[email protected]>
* clarify README, minor test import changes, copyright
Signed-off-by: Filinto Duran <[email protected]>
* feedback DRY test_conversation file
Signed-off-by: Filinto Duran <[email protected]>
* lint
Signed-off-by: Filinto Duran <[email protected]>
* move conversation classes in _response module to conversation module.
Some example README refactor/lint
Signed-off-by: Filinto Duran <[email protected]>
* minor readme change
Signed-off-by: Filinto Duran <[email protected]>
* Update daprdocs/content/en/python-sdk-docs/python-client.md
Co-authored-by: Albert Callarisa <[email protected]>
Signed-off-by: Filinto Duran <[email protected]>
* lint
Signed-off-by: Filinto Duran <[email protected]>
* updates to fix issue with tool calling helper when dealing with classes instead of dataclasses, and also with serializatin output of the tool back to the LLM
Signed-off-by: Filinto Duran <[email protected]>
* coalesce conv helper tests, fix typing lint
Signed-off-by: Filinto Duran <[email protected]>
* make indent line method doc more dev friendly
Co-authored-by: Elena Kolevska <[email protected]>
Signed-off-by: Filinto Duran <[email protected]>
* tackle some feedback, still missing unit tests
Signed-off-by: Filinto Duran <[email protected]>
* add unit test to convert_value_to_struct
Signed-off-by: Filinto Duran <[email protected]>
* more unit tests per feedback
Signed-off-by: Filinto Duran <[email protected]>
* make async version of unit test conversation
Signed-off-by: Filinto Duran <[email protected]>
* add some information how to run markdown tests with a different runtime
Signed-off-by: Filinto Duran <[email protected]>
* ran tox -e ruff, even though tox -e flake8 was fine
Signed-off-by: Filinto Duran <[email protected]>
* add tests to increase coverage in conversation and conversation_helpers that codecov pointed out
Signed-off-by: Filinto Duran <[email protected]>
* add more information on execute registered tools, also added more tests for them to validate
Signed-off-by: Filinto Duran <[email protected]>
* fix test failing on py 1.13. Merge two unit test files per feedback
Signed-off-by: Filinto Duran <[email protected]>
* Linter
Signed-off-by: Elena Kolevska <[email protected]>
* fix typing issue with UnionType in py3.9
Signed-off-by: Filinto Duran <[email protected]>
---------
Signed-off-by: Filinto Duran <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
Co-authored-by: Albert Callarisa <[email protected]>
Co-authored-by: Elena Kolevska <[email protected]>
Co-authored-by: Elena Kolevska <[email protected]>1 parent efd34f8 commit f0e1113
File tree
28 files changed
+8456
-95
lines changed- daprdocs/content/en/python-sdk-docs
- dapr
- aio/clients/grpc
- clients
- grpc
- http
- conf
- examples/conversation
- ext/dapr-ext-grpc/dapr/ext/grpc
- tests/clients
28 files changed
+8456
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
127 | 136 | | |
128 | 137 | | |
129 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | 81 | | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | | - | |
85 | | - | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
1722 | 1723 | | |
1723 | 1724 | | |
1724 | 1725 | | |
1725 | | - | |
| 1726 | + | |
1726 | 1727 | | |
1727 | 1728 | | |
1728 | 1729 | | |
1729 | 1730 | | |
1730 | 1731 | | |
1731 | 1732 | | |
1732 | | - | |
| 1733 | + | |
1733 | 1734 | | |
1734 | 1735 | | |
1735 | 1736 | | |
1736 | 1737 | | |
1737 | 1738 | | |
1738 | 1739 | | |
1739 | | - | |
| 1740 | + | |
1740 | 1741 | | |
1741 | 1742 | | |
1742 | 1743 | | |
| |||
1752 | 1753 | | |
1753 | 1754 | | |
1754 | 1755 | | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1755 | 1759 | | |
1756 | 1760 | | |
1757 | 1761 | | |
1758 | 1762 | | |
1759 | | - | |
| 1763 | + | |
1760 | 1764 | | |
1761 | 1765 | | |
1762 | 1766 | | |
| |||
1766 | 1770 | | |
1767 | 1771 | | |
1768 | 1772 | | |
1769 | | - | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
1770 | 1776 | | |
1771 | 1777 | | |
1772 | 1778 | | |
1773 | | - | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
1774 | 1877 | | |
1775 | 1878 | | |
1776 | 1879 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
| |||
0 commit comments