Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Conversation

@OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Mar 6, 2025

Needs

Not a fan of having it on the same level like system_prompt, maybe we should be allowed to use sth like:

foo:
    system_prompt: 'My prompt'

and

foo:
    system_prompt:
        prompt: 'My prompt'
        include_tool_definitions: true

WDYT?

@OskarStark OskarStark self-assigned this Mar 6, 2025
@OskarStark OskarStark requested a review from chr-hertel March 6, 2025 15:43
@chr-hertel
Copy link
Member

yup, makes sense 👍

maybe include_tools?

@OskarStark
Copy link
Contributor Author

Tbh not sure how to do this stunt with the config component 🥴☺️

@OskarStark OskarStark changed the title Add new option include_tool_definitions feat: support include tools feature to system prompt Mar 7, 2025
@chr-hertel
Copy link
Member

Tbh not sure how to do this stunt with the config component 🥴☺️

I could give it a try, if you want

@OskarStark
Copy link
Contributor Author

OskarStark commented Mar 7, 2025

I could give it a try, if you want

Yes please ❤️

@OskarStark OskarStark force-pushed the feature/tools-system-prompt branch 2 times, most recently from f8d536c to 2afc731 Compare March 7, 2025 09:49
@OskarStark OskarStark added the enhancement New feature or request label Mar 7, 2025
Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍

docs and config changes could be follow up - up to you :)

@OskarStark
Copy link
Contributor Author

I will write some docs here

@OskarStark OskarStark force-pushed the feature/tools-system-prompt branch from 2afc731 to 890f051 Compare March 7, 2025 10:12
name: 'GPT'
version: 'gpt-4o-mini'
system_prompt: 'You are a helpful assistant that can answer questions.' # The default system prompt of the chain
include_tools: true # Include tool definitions at the end of the system prompt
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just added this for now as "doc"

@OskarStark OskarStark merged commit 48e1850 into main Mar 7, 2025
7 checks passed
@OskarStark OskarStark deleted the feature/tools-system-prompt branch March 7, 2025 10:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants