This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JSInvocable { | |
private final Invocable invocable; | |
private final Object object; | |
private JSInvocable(Invocable invocable, Object object) { | |
this.invocable = invocable; | |
this.object = object; | |
} | |
public String invoke(String method, Object...args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import instructor | |
import openai | |
import streamlit as st | |
from pydantic import Field | |
from dataclasses import dataclass | |
import streamlit.components.v1 as components | |
from atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfig | |
from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator |