Guess
Guess
```yaml llm: base_url: "https://openrouter.ai/api/v1" api_key: "sk-or-v1-0780*****" model: "anthropic/claude-3-sonnet" ```
**1. Check Python Version** Ensure that the Python version you are using is compatible with `volcengine-python-sdk`. According to the official documentation, Python 3.7 or higher is recommended. If you are...
For the configuration of ollama's config2.yaml, you can refer to this document: [ollama-api](https://docs.deepwisdom.ai/main/en/guide/get_started/configuration/llm_api_configuration.html#ollama-api) If it is a local ollama model, you can fill in any string, but it cannot be...
让agent写代码,写完运行就能得到图。
就是[Data Interpreter](https://docs.deepwisdom.ai/main/en/DataInterpreter/)的功能
DI的用法有示例:https://github.com/geekan/MetaGPT/blob/main/examples/di/crawl_webpage.py 主要是2部分: 1. 创建对象的时候,把你要使用的工具注册进去,像这样(注意要确保`import scrape_web_playwright`成功): ```python di = DataInterpreter(tools=["scrape_web_playwright"]) ``` 2. 创建工具的时候要使用`@register_tool`装饰器,还要添加google docstring格式的注释,DI根据这些注释来理解工具的用法和使用场景。 ```python @register_tool(tags=["web scraping", "web"]) async def scrape_web_playwright(url: str): """ Asynchronously Scrape and save the HTML structure and...
If you need to generate prompts at runtime, you can use an alternative solution instead of the `ActionNode` approach. The `ActionNode` approach is suitable for SOP (Standard Operating Procedure) scenarios,...
If you want to use the output of the previous ActionNode as part of the fill method prompt for the next ActionNode, that means the previous action is done. So...
## 1. ActionNode [write_prd_an.py](https://github.com/geekan/MetaGPT/blob/main/metagpt/actions/write_prd_an.py#L220) provides some usage examples. ```python NODES = [ LANGUAGE, PROGRAMMING_LANGUAGE, ORIGINAL_REQUIREMENTS, PROJECT_NAME, PRODUCT_GOALS, USER_STORIES, COMPETITIVE_ANALYSIS, COMPETITIVE_QUADRANT_CHART, REQUIREMENT_ANALYSIS, REQUIREMENT_POOL, UI_DESIGN_DRAFT, ANYTHING_UNCLEAR, ] REFINED_NODES = [ LANGUAGE, PROGRAMMING_LANGUAGE,...
1. Who consumes the data, and who is responsible for determining whether the conditions are met. 2. At the end of the execution, role just emit the results, regardless of...