#command-line interface (CLI) application

1 messages · Page 1 of 1 (latest)

meager rapids
#

Good day everyone! I've come across a task that I've never worked with before, maybe someone can guide me? tell me what to study, how it should look like. Thanks in advance to everyone☺️☺️☺️

Develop a command-line interface (CLI) application using Java or Kotlin that simulates an AI agent. This simulation is different from a real AI agent because it does not use LLM as a base - you will need to simulate this interaction manually. You can implement any agent you find interesting.

Requirements:

The input request is sent to the agent in text format. For example, "Get the temperature in London in an hour."
The agent also provides output in text format. For example, "In an hour, it will be 10°C in London."
The agent must be able to handle only one type of request. If you try to send it different types of requests, it will not be able to handle them. For example, the agent in the example above can handle requests like "Get the temperature at $location in $time", but it cannot handle requests like "Get the temperature at $location" or "Get the water temperature at $location in $time".
The agent must have some tools. For example, the agent can monitor its environment, analyze data, or perform some actions. Both data and actions can be synthetic if you want.
Recommendations:

You have full control over how your agent processes user input and whether it interacts with the user while processing a request.
Even though the agent will not use LLM, it will still need to somehow choose the appropriate tool while processing a request. This choice can be either non-deterministic or determined by certain conditions in the code.
Make sure you implement the agent, not the agent workflow.
Please attach a link to a public GitHub repository with the source code. Feel free to upload your work, even if it is not completely finished . #1051826284008853505

neat spearBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
Good day everyone! I've come across a task that I've never worked with before, maybe someone can guide me? tell me what to study, how it should look like. Thanks in advance to everyone☺️☺️☺️ Develop a command-line interface (CLI) application using Java or

k you in advance!

To create a command-line interface (CLI) application in Java, you can start by familiarizing yourself with the basics of handling user input and output through the console. You will need to use classes like BufferedReader and Scanner to read input from the user and System.out.println() to display output.

Next, you can look into creating a menu system for your CLI application, where users can choose different options by entering specific commands or numbers. You can use switch statements or if-else blocks to handle these different options.

Additionally, you may want to explore how to parse command-line arguments using libraries like Apache Commons CLI or JCommander. This will allow users to pass arguments when running your application from the command line.

Overall, your CLI application should be well-structured, with clear prompts and error handling mechanisms in place. It should provide a user-friendly experience and be able to handle various scenarios gracefully.

I hope this helps get you started on creating your CLI application in Java! Good luck with your project.

worn jetty
#

i would say regex could be useful with capture groups and case insensitivity, but there is some ambiguity in what it wants. (Consider how one 'example' says "at $location" and one say "in $location"

meager rapids
stray juniper
#

I would store like an average weekly temp. If they query for a date I'd have it fall within a range based on that week's average number you stored, with a slight chance of a larger deviation and store that value in a list. That way it doesn't appear so random. And you could base the temp each week off of seasons or whatever too. You could honestly make it relatively complicated. Really up to you. Idk if you know how to query server APIs, but you could also do that; which honestly would be faaaarrr easier.

#

Query like weather.com or something with a location and date. That'd be relatively easy.

worn jetty
#

Didnt the problem statement say u can fake the data, maybe you can just use randoms? Not sure