GitHub user wenjin272 added a comment to the discussion: Agent Skills 
Integration Design

Good questions!

> When we add skill files as resources, will they be distributed to 
> TaskManagers in the same way Flink normally distributes JAR files? It would 
> be excellent if we could implement this functionality.

The behavior varies depending on the source of the skill files provided by the 
user:
1. **Skill files from the filesystem**: Users must place the skill files in a 
filesystem accessible to the TaskManager (TM); therefore, no distribution is 
required.

2. **Skill files from a JAR**: The skill files are distributed together with 
the JAR file.
3. **Skill files from a URL**: The ultimate goal is for the JobManager (JM) to 
download the files from the URL and distribute them similarly to JAR files, 
potentially leveraging Flink's blob storage. However, in the initial version, 
this will be implemented as each TM downloading the files independently.

> Will the skills be cached when they are activated, or will they need to be 
> reloaded every time they are called?

Yes, the loaded skills will be cached, to avoid reloaded. 
If a job utilizes a large number of skills, it may impose significant memory 
pressure; therefore, a TTL (Time-To-Live) mechanism might be necessary. 
However, we will not implement this in the initial version.

GitHub link: 
https://github.com/apache/flink-agents/discussions/565#discussioncomment-16150278

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to