You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,7 @@ Allie FlowKit Python can be run locally or as a Docker container. Follow the ins
96
96
- Add your functioncode as an endpoint to a new Python file in the `allie/flowkit/endpoints` directory.
97
97
- Use the `allie/flowkit/endpoints/splitter.py` file and its endpoints as an example.
98
98
- Explicitly define the input and output of the functionusing Pydantic models, as these will be used by the Allie Agent to call the function.
99
+
- Add the category and display name of the functionto the endpoint definition.
99
100
100
101
2. **Add the models for the function:**
101
102
- Create the models forthe input and output of the functionin the `allie/flowkit/models` directory.
@@ -147,7 +148,7 @@ Allie FlowKit Python can be run locally or as a Docker container. Follow the ins
147
148
```
148
149
149
150
3. **Define your custom function:**
150
-
- Add your functionto``custom_endpoint.py``, explicitly defining the input and output using Pydantic models.
151
+
- Add your functionto``custom_endpoint.py``, explicitly defining the input and output using Pydantic models, and the category and display name of the function.
151
152
152
153
**custom_endpoint.py**:
153
154
```python
@@ -156,6 +157,8 @@ Allie FlowKit Python can be run locally or as a Docker container. Follow the ins
0 commit comments