Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return type in docs #194

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Fix return type in docs #194

merged 1 commit into from
Mar 21, 2024

Conversation

jmoreira-valory
Copy link
Collaborator

Fix return type in docs

## Build your own

You can create and mint your own AI Mech that handles requests for tasks that you can define.

1. **Create a new tool.** Tools are the components that execute the Requests for AI tasks submitted on [Mech Hub](https://aimechs.autonolas.network/mech). Tools are custom components and should be under the `customs` packages (ex. [valory tools](./packages/valory/customs)). Such file must contain a `run` function satisfying the following interface:

```python
def run(**kwargs) -> Tuple[Optional[str], Optional[Dict[str, Any]], Any, Any]::
def run(**kwargs) -> Tuple[str, Optional[str], Optional[Dict[str, Any]], Any]:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xArdi verify

@@ -217,7 +223,7 @@ You can create and mint your own AI Mech that handles requests for tasks that yo
<api_key>=kwargs["api_keys"][<api_key_id>].
```

- **Output**: It must **always** return a tuple (`Tuple[Optional[str], Any, Optional[Dict[str, Any]], Any]`):
- **Output**: It must **always** return a tuple (`Tuple[str, Optional[str], Optional[Dict[str, Any]], Any]`):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xArdi verify

@0xArdi 0xArdi merged commit de31f3c into main Mar 21, 2024
6 checks passed
@0xArdi 0xArdi deleted the doc/update_return_type branch March 21, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants