golem-annotate-agent-rust

Adds prompt and description annotations to Rust agent methods for LLM tool discovery.

1.5k|212|Updated Nov 24, 2023
One-click install
npx skills add https://github.com/golemcloud/golem --skill golem-annotate-agent-rust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-annotate-agent-rust
Source: https://github.com/golemcloud/golem/tree/main/golem-skills/skills/rust/golem-annotate-agent-rust
Command: npx skills add https://github.com/golemcloud/golem --skill golem-annotate-agent-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Golem agent methods need metadata so LLM-based systems can discover and invoke them as tools, but writing correct #[prompt] and #[description] annotations requires knowing the exact attribute syntax and conventions.

Core Features & Use Cases

  • Prompt Annotations: Add #[prompt] attributes that tell an LLM when to call a specific agent method.
  • Description Annotations: Add #[description] attributes documenting behavior, parameters, return values, and edge cases.
  • Use Case: You have a Rust inventory agent with methods like check_stock and restock. Use this Skill to annotate each public method so an LLM-based system can match user requests to the right agent method.

Quick Start

Add prompt and description annotations to the public methods of my Golem Rust agent trait so they can be discovered by LLM tools.

Frequently Asked Questions about golem-annotate-agent-rust

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add prompt and description annotations to Golem Rust agent methods?

Add #[prompt("...")] and #[description("...")] attributes directly above each method in the trait marked with #[agent_definition]. Import prompt and description from golem_rust alongside agent_definition and agent_implementation.

What is the difference between #[prompt] and #[description] in Golem agents?

#[prompt] is a short instruction telling an LLM when to call the method, while #[description] is a longer explanation of what the method does, its parameters, and its return value. Both are optional metadata for LLM tool discovery.

Do Golem agent annotations affect runtime behavior?

No, #[prompt] and #[description] annotations are purely metadata and have no effect on runtime behavior. They exist only to help LLM-based systems discover and invoke agent methods as tools.

Should I annotate every method in my Golem agent trait?

No, omit annotations for internal methods not intended for LLM discovery. Annotate only the public methods you want an LLM to match against user requests, keeping prompts natural-language and descriptions focused on behavior and edge cases.