Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Apr 30, 2024
1 parent 5c02f8e commit 657b4ff
Show file tree
Hide file tree
Showing 6 changed files with 2,855 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.gitattributes
_proc/
index_files/
sidebar.yml
Gemfile.lock
token
Expand Down
3 changes: 2 additions & 1 deletion 00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,7 @@
" ns:Optional[abc.Mapping]=None, # Namespace to search for tools, defaults to `globals()`\n",
" prefill='', # Optional prefill to pass to Claude as start of its response\n",
" **kw):\n",
" \"Add prompt `pr` to dialog and get a response from Claude\"\n",
" if ns is None: ns=self.tools\n",
" if isinstance(pr,str): pr = pr.strip()\n",
" self.h.append(mk_toolres(pr, ns=ns))\n",
Expand Down Expand Up @@ -1863,7 +1864,7 @@
" stop:Optional[list[str]]=None, # Stop sequences\n",
" prefill='', # Optional prefill to pass to Claude as start of its response\n",
" **kw):\n",
" \"Add a prompt and get a response from the chat dialog, streaming the result\"\n",
" \"Add prompt `pr` to dialog and stream the response from Claude\"\n",
" if isinstance(pr,str): pr = pr.strip()\n",
" self.h.append(pr)\n",
" if prefill: yield(prefill)\n",
Expand Down
Loading

0 comments on commit 657b4ff

Please sign in to comment.