Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Writing skills and prompts with Typescript #270

webNeat started this conversation in Ideas
Discussion options

Hi everyone,

One issue I encounter often when I write complex prompts or skills is the agent interpreting my words the wrong way, or deciding to batch or skip steps.

Problem: Human language is inherently ambiguous and when we add that to LLMs tendency to hallucinate and take shortcuts, we get very unpredictable results.

Idea: what if we wrote prompts in a programming language? this should force the agent to follow it step by step, right?

I chose Typescript as the language and built mantiq, a cli and a skill that let's you write prompts and skills using Typescript, some features/benefits are:

  • Having full control over the execution of the prompt.
  • The ability to implement determistic logic as Typescript functions that will be called as tools by the agent.
  • The ability to tell the agent what to think about or which actions to take at any step of the program.

I am still experimenting with this tool and would love to have your feedbacks on it: https://github.com/webNeat/mantiq

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /