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

Implement Dust API Client #11424

Open
Fraggle opened this issue Mar 18, 2025 · 0 comments
Open

Implement Dust API Client #11424

Fraggle opened this issue Mar 18, 2025 · 0 comments

Comments

@Fraggle
Copy link
Contributor

Fraggle commented Mar 18, 2025

Dust API CLI Client

Context

A Dust API CLI client is a command-line interface tool that allows users to interact with the Dust API directly from their terminal. This client will provide a set of commands to perform various operations supported by the Dust API, enabling users to:

  • Authenticate: Use API keys or OAuth tokens to authenticate and authorize API requests.
  • List Resources: Retrieve lists of available resources such as agents and other relevant entities.
  • nteract with Agents: Send queries or commands to specific agents and receive responses.

In this task, we will develop a Dust API CLI client that users can run from their terminal to interact with the Dust platform. The client will include commands such as:

  • list_agents: Retrieve and display a list of available Dust agents.
  • ask_agent: Send a query to a specific agent and display the response.

To streamline the development process, you can utilize the existing JavaScript SDK for the Dust API, available at @dust-tt/client. This SDK provides convenient methods for interacting with the Dust API, handling, and managing API requests and responses.

Authentication

The CLI client will support authentication using API keys or OAuth tokens. Users will be able to configure their authentication credentials using environment variables or a configuration file.

Error Handling

The client will include robust error handling to ensure that users receive clear and informative error messages when something goes wrong. This will include handling network errors, API errors, and validation errors.

Conclusion

By implementing a Dust API CLI client, we will provide users with a powerful and convenient tool for interacting with the Dust platform directly from their terminal. This will enable users to automate tasks, integrate with other tools, and streamline their workflows.

@Fraggle Fraggle changed the title Implement Dust API Client Exercise: Implement Dust API Client Mar 18, 2025
@Fraggle Fraggle changed the title Exercise: Implement Dust API Client Implement Dust API Client Mar 18, 2025
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

No branches or pull requests

1 participant