Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support macro #1087

Merged
merged 1 commit into from
Jan 17, 2025
Merged

feat: support macro #1087

merged 1 commit into from
Jan 17, 2025

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Jan 16, 2025

# <aichat-config-dir>/macros/test-function-calling.yaml
steps:
  - .role %functions% what is the weather in Pairs and Berlin?
# <aichat-config-dir>/macros/within-agent.yaml
variables:
  - name: agent
  - name: args
    rest: true
    default: What can your do?
steps:
  - .agent {{agent}}
  - '{{args}}'

image

image

close #1077

@sigoden sigoden merged commit 30dae5c into main Jan 17, 2025
3 checks passed
@sigoden sigoden deleted the feat-macro branch January 17, 2025 12:06
@milanglacier
Copy link

Thanks for the great work, this is a really exciting feature. Will definitely try it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom REPL commands
2 participants