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: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Pull requests should be done on the `dev` branch. When the release is finalised,
25
25
26
26
Whether you're interested in contributing to the repository, creating a fork, or just improving your understanding of Writer Framework, these are the suggested steps for setting up a development environment.
27
27
28
-
- You can install the package in editable mode using `poetry install`
28
+
- You can install the package in editable mode using `poetry install --with build`
29
29
- Enable the virtual environment with `poetry shell`
30
30
- Install all the dev dependencies with `alfred install.dev`
31
31
- Run Writer Framework on port 5000. For example, `writer edit apps/hello --port 5000`.
Copy file name to clipboardExpand all lines: docs/framework/ai-module.mdx
+82-1Lines changed: 82 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,7 @@ Function tools require the following properties:
217
217
218
218
When a conversation involves a tool (either a graph or a function), Framework automatically handles the requests from LLM to use the tools during interactions. If the tool needs multiple steps (for example, querying data and processing it), Framework will handle those steps recursively, calling functions as needed until the final result is returned.
219
219
220
-
By default, to prevent endless recursion, Framework will only handle 3 consecutive tool calls. You can expand it in case it doesn't suit your case – both `complete()` and `stream_complete()` accept a `max_tool_depth` parameter, which configures the maximum allowed recursion depth:
220
+
By default, to prevent endless recursion, Framework will only handle 5 consecutive tool calls. You can expand it in case it doesn't suit your case – both `complete()` and `stream_complete()` accept a `max_tool_depth` parameter, which configures the maximum allowed recursion depth:
This document outlines the use of `Tools` in the Writer Framework; for more thorough documentation, check out (this guide)[https://dev.writer.com/api-guides/tools].
347
+
</Note>
348
+
349
+
The `writer.ai.tools` instance provides access to Writer SDK `tools` resources, such as text splitting, medical content comprehension, and PDF parsing. Below is a guide on how to use each method.
350
+
351
+
### Splitting Content
352
+
353
+
The `split` method divides text into chunks based on a selected strategy.
354
+
355
+
```python
356
+
from writer.ai import tools
357
+
358
+
content = \
359
+
"""
360
+
This is a long piece of text that needs to be split into smaller parts.
0 commit comments