Skip to content

关于本页

本页介绍更夫所基于的开源内核 Keep 的通用能力。更夫在其上提供国内化增强:钉钉/企业微信/飞书通知、国产大模型接入、LDAP 认证与值班管理。部署与上手请看快速上手。

In workflows ​

This provider can be used in workflows.

As "step" 可以 query data, example:

yaml
steps:
    - name: Query http
      provider: http
      config: "{{ provider.my_provider_name }}"
      with:
        url: {value}  
        method: {value}  
        headers: {value}  
        body: {value}  
        params: {value}  
        proxies: {value}  
        fail_on_error: {value}  
        verify: {value}

As "action" 可以 make changes or update data, example:

yaml
actions:
    - name: Query http
      provider: http
      config: "{{ provider.my_provider_name }}"
      with:
        url: {value}  
        method: {value}  
        headers: {value}  
        body: {value}  
        params: {value}  
        proxies: {value}  
        verify: {value}

Check the following workflow examples:

连接 Provider ​

要连接到 provider,您可以实例化 HttpProvider 类的一个实例,提供 provider_id 和 ProviderConfig 对象。然后您可以调用 query 方法来查询 HTTP 端点。

注意事项 ​

代码会记录有关正在发送的请求的一些调试信息,包括请求头、请求体和查询参数。此信息不应包含敏感信息,但在生产环境中使用了此 provider 之前,确保这一点很重要。

相关链接 ​

基于 MIT 协议开源的 Keep · 由更夫社区维护