Skip to content

grupo-avispa/llm_interactions_msgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm_interactions_msgs

This package defines custom ROS 2 action messages for interacting with language models in a ROS-based system.

Action Definition

The UserQueryResponse.action consists of three sections: request, response, and feedback.

Request

string user_name        # Interacting user's name
string user_query       # Input query from the user

Response

string response_text    # Generated response to the user's query
float32 elapsed_time    # Time taken to generate the response (in seconds)

Feedback

string status           # Status of the process (e.g., "completed", "failed")

Usage

This package is intended to be used as a dependency in nodes that require sending and receiving custom action messages.

Example import in Python:

from llm_interactions_msgs.action import UserQueryResponse

Example import in C++:

#include "llm_interactions_msgs/action/user_query_response.hpp"

Service Definition

The UserQueryResponse.srv consists of two sections: request and response.

Request

string user_name        # Interacting user's name
string user_query       # Input query from the user

Response

string response_text    # Generated response to the user's query

Example Usage

This package is intended to be used as a dependency in nodes that require sending and receiving custom service messages. Example import in Python:

from llm_interactions_msgs.srv import UserQueryResponse

Example import in C++:

#include "llm_interactions_msgs/srv/user_query_response.hpp"

Dependencies

  • ROS 2 (>= Humble)
  • action_msgs
  • builtin_interfaces

Installation

Clone this package into your ROS 2 workspace:

cd ~/ros2_ws/src
git clone <repository_url>
cd ~/ros2_ws
colcon build --packages-select llm_interactions_msgs --symlink-install
source install/setup.bash

About

Custom actions/msgs/services to communicate with LLM agents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages