+ | Type | +Default | +Details | +
---|---|---|---|
pr | ++ | + | Prompt to pass to Claude | +
max_steps | +int | +10 | +Maximum number of tool requests to loop through | +
trace_func | +Optional | +None | +Function to trace tool use steps (e.g print ) |
+
cont_func | +Optional | +noop | +Function that stops loop if returns False | +
temp | +NoneType | +None | +Temperature | +
maxtok | +int | +4096 | +Maximum tokens | +
stream | +bool | +False | +Stream response? | +
prefill | +str | ++ | Optional prefill to pass to Claude as start of its response | +
tool_choice | +Optional | +None | +Optionally force use of some tool | +
+ | Type | +Default | +Details | +
---|---|---|---|
msgs | +list | ++ | List of messages in the dialog | +
sp | +str | ++ | The system prompt | +
temp | +int | +0 | +Temperature | +
maxtok | +int | +4096 | +Maximum tokens | +
prefill | +str | ++ | Optional prefill to pass to Claude as start of its response | +
stream | +bool | +False | +Stream response? | +
stop | +NoneType | +None | +Stop sequence | +
cli | +NoneType | +None | ++ |
log | +bool | +False | ++ |
+ | Type | +Default | +Details | +
---|---|---|---|
model | +Optional | +None | +Model to use (leave empty if passing cli ) |
+
cli | +Optional | +None | +Client to use (leave empty if passing model ) |
+
sp | +str | ++ | + |
tools | +Optional | +None | ++ |
temp | +int | +0 | ++ |
cont_pr | +Optional | +None | ++ |
+ | Type | +Default | +Details | +
---|---|---|---|
pr | +NoneType | +None | +Prompt / message | +
temp | +int | +0 | +Temperature | +
maxtok | +int | +4096 | +Maximum tokens | +
stream | +bool | +False | +Stream response? | +
prefill | +str | ++ | Optional prefill to pass to Claude as start of its response | +
kw | ++ | + | + |