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

Update StructureVisualizer to be able to identify what model/prompt_driver is being used #1113

Open
1 task done
shhlife opened this issue Aug 27, 2024 · 1 comment
Open
1 task done
Labels
enhancement New feature or request

Comments

@shhlife
Copy link
Collaborator

shhlife commented Aug 27, 2024

It would be incredibly useful to be able to visualize where your data is going - for example, what data is going to go to gpt-4o vs llama3.1.

Perhaps we could add the ability for StructureVisualizer to do this for Agents as well?

for example, for this code:

agent = Agent(
    stream=True,
    prompt_driver=OpenAiChatPromptDriver(model="gpt-4o"),
    tools=[
        WebScraperTool(off_prompt=True),
        QueryTool(prompt_driver=OllamaPromptDriver(model="llama3.1")),
    ],
)

we could display something like:

image

This should also work for Workflows & Pipelines so you know what drivers various tasks are using.

@shhlife shhlife added the enhancement New feature or request label Aug 27, 2024
@collindutter
Copy link
Member

For anyone interested: the easiest way to implement this would likely be to convert the Structure to a dictionary, and then build a graph from the dictionary fields.

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

No branches or pull requests

2 participants