wangold 修订了这个 Gist . 跳至此修订
1 file changed, 10 insertions
Swarm-readme-6.md(file created)
@@ -0,0 +1,10 @@ | |||
1 | + | | Argument | Type | Description | Default | | |
2 | + | | --------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- | | |
3 | + | | **agent** | `Agent` | The (initial) agent to be called. | (required) | | |
4 | + | | **messages** | `List` | A list of message objects, identical to [Chat Completions `messages`](https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages) | (required) | | |
5 | + | | **context_variables** | `dict` | A dictionary of additional context variables, available to functions and Agent instructions | `{}` | | |
6 | + | | **max_turns** | `int` | The maximum number of conversational turns allowed | `float("inf")` | | |
7 | + | | **model_override** | `str` | An optional string to override the model being used by an Agent | `None` | | |
8 | + | | **execute_tools** | `bool` | If `False`, interrupt execution and immediately returns `tool_calls` message when an Agent tries to call a function | `True` | | |
9 | + | | **stream** | `bool` | If `True`, enables streaming responses | `False` | | |
10 | + | | **debug** | `bool` | If `True`, enables debug logging | `False` | |
更新
更早