SYMBOL INDEX (554 symbols across 191 files) FILE: cli/src/envGenerator.js constant ENV_PATH (line 98) | const ENV_PATH = "../next/.env"; constant BACKEND_ENV_PATH (line 99) | const BACKEND_ENV_PATH = "../platform/.env"; FILE: cli/src/questions/sharedQuestions.js constant RUN_OPTION_QUESTION (line 1) | const RUN_OPTION_QUESTION = { FILE: next/next.config.mjs method rewrites (line 29) | rewrites() { FILE: next/src/components/Accordion.tsx type AccordionProps (line 4) | interface AccordionProps { FILE: next/src/components/Badge.tsx type BadgeProps (line 4) | interface BadgeProps { FILE: next/src/components/BannerBadge.tsx type BadgeProps (line 6) | type BadgeProps = PropsWithChildren { FILE: next/src/components/Switch.tsx type SwitchProps (line 5) | interface SwitchProps { FILE: next/src/components/TextButton.tsx type TextButtonProps (line 7) | type TextButtonProps = { function TextButton (line 13) | function TextButton({ children, onClick, icon, className }: TextButtonPr... FILE: next/src/components/Tooltip.tsx type TooltipProps (line 6) | interface TooltipProps { FILE: next/src/components/WindowButton.tsx type WindowButtonProps (line 6) | type WindowButtonProps = { FILE: next/src/components/console/AgentControls.tsx type AgentControlsProps (line 9) | type AgentControlsProps = { FILE: next/src/components/console/ChatWindow.tsx type ChatControls (line 15) | interface ChatControls { type ChatWindowProps (line 22) | interface ChatWindowProps extends HeaderProps { FILE: next/src/components/console/ExampleAgents.tsx type ExampleAgentsProps (line 8) | type ExampleAgentsProps = { FILE: next/src/components/console/MacWindowHeader.tsx type HeaderProps (line 19) | interface HeaderProps { type MacWindowInternalProps (line 120) | interface MacWindowInternalProps extends PropsWithChildren { FILE: next/src/components/console/MarkdownRenderer.tsx type MarkdownRendererProps (line 10) | interface MarkdownRendererProps { type CustomCodeBlockProps (line 81) | interface CustomCodeBlockProps { FILE: next/src/components/console/SourceLink.tsx type LinkInfo (line 9) | interface LinkInfo { FILE: next/src/components/dialog/HelpDialog.tsx function HelpDialog (line 8) | function HelpDialog() { FILE: next/src/components/dialog/SignInDialog.tsx type SignInDialogProps (line 6) | interface SignInDialogProps { FILE: next/src/components/dialog/ToolsDialog.tsx type ToolProps (line 52) | interface ToolProps { FILE: next/src/components/drawer/DrawerItemButton.tsx type DrawerItemProps (line 4) | interface DrawerItemProps { FILE: next/src/components/drawer/Sidebar.tsx type DisplayProps (line 7) | type DisplayProps = { type SidebarProps (line 12) | type SidebarProps = DisplayProps & { type SidebarTransitionProps (line 33) | type SidebarTransitionProps = { FILE: next/src/components/index/chat.tsx type ChatProps (line 15) | type ChatProps = { FILE: next/src/components/index/landing.tsx type LandingProps (line 16) | type LandingProps = { FILE: next/src/components/landing/FooterLinks.tsx type FooterLinkProps (line 3) | interface FooterLinkProps { FILE: next/src/components/landing/OpenSource.tsx type TerminalProps (line 8) | interface TerminalProps { FILE: next/src/components/landing/Section.tsx type ResourceProps (line 53) | interface ResourceProps { FILE: next/src/components/loader.tsx type LoaderProps (line 4) | interface LoaderProps { FILE: next/src/components/motions/CycleIcons.tsx type CycleItemsProps (line 6) | interface CycleItemsProps extends PropsWithChildren { FILE: next/src/components/motions/FadeIn.tsx type MotionProps (line 4) | interface MotionProps extends PropsWithChildren { FILE: next/src/components/motions/FadeOut.tsx type MotionProps (line 4) | interface MotionProps extends PropsWithChildren { FILE: next/src/components/motions/HideShow.tsx type MotionProps (line 4) | interface MotionProps extends PropsWithChildren { FILE: next/src/components/motions/expand.tsx type MotionProps (line 4) | interface MotionProps extends PropsWithChildren { FILE: next/src/components/motions/popin.tsx type MotionProps (line 4) | interface MotionProps extends PropsWithChildren { FILE: next/src/components/sidebar/links.tsx type LinkMetadata (line 13) | type LinkMetadata = { constant PAGE_LINKS (line 20) | const PAGE_LINKS: LinkMetadata[] = [ constant SOCIAL_LINKS (line 46) | const SOCIAL_LINKS: LinkMetadata[] = [ FILE: next/src/components/templates/TemplateCard.tsx type TemplateCardProps (line 7) | type TemplateCardProps = { FILE: next/src/components/templates/TemplateData.tsx constant TEMPLATE_DATA (line 24) | const TEMPLATE_DATA: TemplateModel[] = [ type TemplateModel (line 208) | interface TemplateModel { FILE: next/src/components/templates/TemplateSearch.tsx type SearchBarProps (line 4) | interface SearchBarProps { FILE: next/src/components/toast.tsx type Props (line 7) | type Props = { FILE: next/src/env/schema.mjs function stringToBoolean (line 9) | function stringToBoolean() { FILE: next/src/hooks/useAgent.ts type AgentUtils (line 8) | type AgentUtils = { function useAgent (line 13) | function useAgent(): AgentUtils { FILE: next/src/hooks/useAuth.ts type Provider (line 6) | type Provider = "google" | "github" | "discord"; type Auth (line 8) | interface Auth { type UseAuthOptions (line 15) | interface UseAuthOptions { function useAuth (line 20) | function useAuth( FILE: next/src/hooks/useModels.ts type LLMModel (line 15) | type LLMModel = z.infer; function useModels (line 17) | function useModels() { FILE: next/src/hooks/useMouseMovement.ts function useMouseMovement (line 4) | function useMouseMovement() { FILE: next/src/hooks/useSID.ts constant QUERY_KEY (line 6) | const QUERY_KEY = ["sid"]; function useSID (line 8) | function useSID(session: Session | null) { FILE: next/src/hooks/useSettings.ts type SettingsModel (line 12) | type SettingsModel = { function useSettings (line 18) | function useSettings(): SettingsModel { FILE: next/src/hooks/useTools.ts type ActiveTool (line 22) | type ActiveTool = z.infer; function useTools (line 47) | function useTools() { FILE: next/src/layout/dashboard.tsx type SidebarSettings (line 10) | type SidebarSettings = { type DashboardLayoutProps (line 15) | type DashboardLayoutProps = { FILE: next/src/layout/default.tsx type LayoutProps (line 5) | interface LayoutProps { FILE: next/src/layout/grid.tsx type Props (line 5) | interface Props extends PropsWithChildren { function GridLayout (line 9) | function GridLayout(props: Props) { FILE: next/src/lib/posts.ts type SlugData (line 7) | interface SlugData { function getSortedPostsData (line 16) | function getSortedPostsData(): SlugData[] { type PostData (line 40) | interface PostData { function getPostData (line 47) | function getPostData(slug: string): PostData { FILE: next/src/pages/blog.tsx function BlogPage (line 11) | function BlogPage({ allPostsData }) { function getStaticProps (line 102) | async function getStaticProps() { FILE: next/src/pages/blog/[slug].tsx function BlogPost (line 14) | function BlogPost({ function getStaticPaths (line 64) | async function getStaticPaths() { function getStaticProps (line 79) | async function getStaticProps({ params }: { params: { slug: string } }) { FILE: next/src/pages/signin.tsx type Provider (line 93) | type Provider = Record, ClientSafeProv... type ButtonDetail (line 95) | interface ButtonDetail { function getServerSideProps (line 138) | async function getServerSideProps(context: GetServerSidePropsContext) { FILE: next/src/server/api/root.ts type AppRouter (line 9) | type AppRouter = typeof appRouter; FILE: next/src/server/api/routers/agentRouter.ts type CreateAgentProps (line 14) | type CreateAgentProps = z.infer; type SaveAgentProps (line 20) | type SaveAgentProps = z.infer; function generateAgentName (line 22) | async function generateAgentName(goal: string) { FILE: next/src/server/api/trpc.ts type CreateContextOptions (line 34) | type CreateContextOptions = { method errorFormatter (line 72) | errorFormatter({ shape }) { FILE: next/src/server/auth/index.ts function overridePrisma (line 15) | function overridePrisma(fn: (user: T) => Awaitable) { method session (line 35) | async session({ session, user }) { FILE: next/src/server/auth/local-auth.ts function cookieToString (line 16) | function cookieToString(cookie: string | undefined | null | boolean) { method authorize (line 41) | async authorize(credentials, req) { method signIn (line 76) | async signIn({ user }) { FILE: next/src/services/agent/agent-api.ts type ApiProps (line 10) | type ApiProps = Pick & { class AgentApi (line 15) | class AgentApi { method constructor (line 20) | constructor(apiProps: ApiProps) { method createAgent (line 24) | async createAgent(): Promise { method saveMessages (line 32) | saveMessages(messages: Message[]): void { method getInitialTasks (line 41) | async getInitialTasks(): Promise { method getAdditionalTasks (line 45) | async getAdditionalTasks( method analyzeTask (line 63) | async analyzeTask(task: string): Promise { method post (line 70) | private async post( FILE: next/src/services/agent/agent-run-model.tsx type AgentRunModel (line 10) | interface AgentRunModel { type AgentLifecycle (line 32) | type AgentLifecycle = "offline" | "running" | "pausing" | "paused" | "st... class DefaultAgentRunModel (line 34) | class DefaultAgentRunModel implements AgentRunModel { method constructor (line 38) | constructor(goal: string) { method updateTaskStatus (line 67) | updateTaskStatus(task: Task, status: TaskStatus): Task { method updateTaskResult (line 71) | updateTaskResult(task: Task, result: string): Task { method updateTask (line 75) | updateTask(updatedTask: Task): Task { FILE: next/src/services/agent/agent-work/agent-work.ts type AgentWork (line 1) | interface AgentWork { FILE: next/src/services/agent/agent-work/analyze-task-work.ts class AnalyzeTaskWork (line 8) | class AnalyzeTaskWork implements AgentWork { method constructor (line 11) | constructor(private parent: AutonomousAgent, private task: Task) {} FILE: next/src/services/agent/agent-work/chat-work.ts class ChatWork (line 9) | class ChatWork implements AgentWork { method constructor (line 10) | constructor(private parent: AutonomousAgent, private message: string) {} FILE: next/src/services/agent/agent-work/create-task-work.ts class CreateTaskWork (line 5) | class CreateTaskWork implements AgentWork { method constructor (line 8) | constructor(private parent: AutonomousAgent, private task: Task) {} FILE: next/src/services/agent/agent-work/execute-task-work.ts class ExecuteTaskWork (line 11) | class ExecuteTaskWork implements AgentWork { method constructor (line 14) | constructor(private parent: AutonomousAgent, private task: Task, priva... FILE: next/src/services/agent/agent-work/start-task-work.ts class StartGoalWork (line 4) | class StartGoalWork implements AgentWork { method constructor (line 7) | constructor(private parent: AutonomousAgent) {} FILE: next/src/services/agent/agent-work/summarize-work.ts class SummarizeWork (line 9) | class SummarizeWork implements AgentWork { method constructor (line 10) | constructor(private parent: AutonomousAgent) {} FILE: next/src/services/agent/analysis.ts type Analysis (line 1) | type Analysis = { FILE: next/src/services/agent/autonomous-agent.ts class AutonomousAgent (line 17) | class AutonomousAgent { method constructor (line 27) | constructor( method run (line 42) | async run() { method runWork (line 87) | private async runWork(work: AgentWork, shouldStop: () => boolean = () ... method pauseAgent (line 125) | pauseAgent() { method stopAgent (line 129) | stopAgent() { method summarize (line 134) | async summarize() { method chat (line 142) | async chat(message: string) { method createTaskMessages (line 157) | async createTaskMessages(tasks: string[]) { FILE: next/src/services/agent/message-service.ts class MessageService (line 12) | class MessageService { method constructor (line 15) | constructor(renderMessage: (message: Message) => void) { FILE: next/src/services/api-utils.ts function getHeaders (line 41) | function getHeaders(session?: Session) { function getUrl (line 50) | function getUrl(url: string) { function withRetries (line 53) | async function withRetries( FILE: next/src/services/api/org.ts class OrganizationApi (line 21) | class OrganizationApi { method constructor (line 24) | constructor(accessToken?: string) { method get (line 28) | async get(name: string) { FILE: next/src/services/fetch-utils.ts function getHeaders (line 5) | function getHeaders(accessToken: string | undefined, organizationId: str... FILE: next/src/services/stream-utils.ts type TextStream (line 3) | type TextStream = ReadableStreamDefaultReader; function readStream (line 32) | async function readStream(reader: TextStream): Promise { function processStream (line 37) | async function processStream( FILE: next/src/services/workflow/oauthApi.ts class OauthApi (line 7) | class OauthApi { method constructor (line 11) | constructor(accessToken?: string, organizationId?: string) { method fromSession (line 16) | static fromSession(session: Session | null) { method install (line 20) | async install(provider: string, redirectUri?: string) { method uninstall (line 31) | async uninstall(provider: string) { method get_info (line 42) | async get_info(provider: string) { method get_info_sid (line 56) | async get_info_sid() { FILE: next/src/stores/agentInputStore.ts type AgentInputSlice (line 8) | interface AgentInputSlice { FILE: next/src/stores/agentStore.ts type AgentSlice (line 10) | interface AgentSlice { type ToolsSlice (line 29) | interface ToolsSlice { FILE: next/src/stores/configStore.ts type Layout (line 7) | interface Layout { type LayoutSlice (line 12) | interface LayoutSlice { type OrganizationRole (line 17) | interface OrganizationRole { type AuthSlice (line 23) | interface AuthSlice { FILE: next/src/stores/helpers.ts type WithSelectors (line 8) | type WithSelectors = S extends { getState: () => infer T } FILE: next/src/stores/messageStore.ts type MessageSlice (line 13) | interface MessageSlice { FILE: next/src/stores/modelSettingsStore.ts type ModelSettingsSlice (line 11) | interface ModelSettingsSlice { FILE: next/src/stores/taskStore.ts type TaskSlice (line 19) | interface TaskSlice { FILE: next/src/types/errors.ts constant MAX_LOOPS_ERROR (line 4) | const MAX_LOOPS_ERROR = "MaxLoopsError"; type PlatformError (line 11) | type PlatformError = z.infer; type ValueError (line 40) | type ValueError = z.infer; FILE: next/src/types/message.ts type Message (line 32) | type Message = z.infer; FILE: next/src/types/modelSettings.ts constant GPT_MODEL_NAMES (line 8) | const GPT_MODEL_NAMES = [GPT_35_TURBO, GPT_35_TURBO_16K, GPT_4]; type GPTModelNames (line 9) | type GPTModelNames = "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-4"; constant MAX_TOKENS (line 11) | const MAX_TOKENS: Record = { type ModelSettings (line 17) | interface ModelSettings { FILE: next/src/types/next-auth.d.ts type Session (line 7) | interface Session { type User (line 15) | interface User { FILE: next/src/types/propTypes.ts type toolTipProperties (line 1) | type toolTipProperties = { FILE: next/src/types/task.ts constant MESSAGE_TYPE_TASK (line 3) | const MESSAGE_TYPE_TASK = "task"; type TaskStatus (line 25) | type TaskStatus = z.infer; type Task (line 36) | type Task = z.infer; FILE: next/src/ui/button.tsx type ButtonProps (line 7) | interface ButtonProps extends React.ButtonHTMLAttributes { function Checkbox (line 11) | function Checkbox(props: Props) { FILE: next/src/ui/combox.tsx type Props (line 7) | interface Props { FILE: next/src/ui/dialog.tsx type DialogProps (line 6) | interface DialogProps extends PropsWithChildren { FILE: next/src/ui/highlight.tsx type Props (line 12) | interface Props { FILE: next/src/ui/input.tsx type Props (line 4) | interface Props extends React.InputHTMLAttributes { FILE: next/src/ui/select.tsx type Props (line 8) | interface Props { function Select (line 18) | function Select(props: Props) { FILE: next/src/utils/api.ts method config (line 25) | config() { type RouterInputs (line 60) | type RouterInputs = inferRouterInputs; type RouterOutputs (line 65) | type RouterOutputs = inferRouterOutputs; FILE: next/src/utils/constants.ts constant GPT_35_TURBO (line 4) | const GPT_35_TURBO = "gpt-3.5-turbo" as const; constant GPT_4 (line 5) | const GPT_4 = "gpt-4" as const; constant GPT_MODEL_NAMES (line 6) | const GPT_MODEL_NAMES = [GPT_35_TURBO, GPT_4]; constant DEFAULT_MAX_LOOPS_FREE (line 8) | const DEFAULT_MAX_LOOPS_FREE = 25 as const; constant DEFAULT_MAX_LOOPS_CUSTOM_API_KEY (line 9) | const DEFAULT_MAX_LOOPS_CUSTOM_API_KEY = 10 as const; FILE: next/src/utils/helpers.ts type Constructor (line 1) | type Constructor = new (...args: unknown[]) => T; FILE: next/src/utils/interfaces.ts type ApiModelSettings (line 6) | interface ApiModelSettings { type RequestBody (line 25) | interface RequestBody { FILE: next/src/utils/languages.ts type Language (line 1) | type Language = { constant ENGLISH (line 7) | const ENGLISH = { code: "en", name: "English", flag: "🇺🇸" }; FILE: next/src/utils/translations.ts type Namespace (line 3) | type Namespace = FILE: next/src/utils/whitespace.ts function regex (line 1) | function regex() { function isEmptyOrBlank (line 5) | function isEmptyOrBlank(value: string) { FILE: platform/reworkd_platform/__main__.py function main (line 6) | def main() -> None: FILE: platform/reworkd_platform/conftest.py function anyio_backend (line 20) | def anyio_backend() -> str: function _engine (line 30) | async def _engine() -> AsyncGenerator[AsyncEngine, None]: function dbsession (line 55) | async def dbsession( function fastapi_app (line 85) | def fastapi_app(dbsession: AsyncSession) -> FastAPI: function client (line 97) | async def client( FILE: platform/reworkd_platform/db/base.py class Base (line 15) | class Base(DeclarativeBase): method get (line 28) | async def get(cls: Type[T], session: AsyncSession, id_: str) -> Option... method get_or_404 (line 32) | async def get_or_404(cls: Type[T], session: AsyncSession, id_: str) -> T: method save (line 38) | async def save(self: T, session: AsyncSession) -> T: method delete (line 43) | async def delete(self: T, session: AsyncSession) -> None: class TrackedModel (line 47) | class TrackedModel(Base): method delete (line 60) | async def delete(self, session: AsyncSession) -> None: class UserMixin (line 66) | class UserMixin: FILE: platform/reworkd_platform/db/crud/agent.py class AgentCRUD (line 13) | class AgentCRUD(BaseCrud): method __init__ (line 14) | def __init__(self, session: AsyncSession, user: UserBase): method create_run (line 18) | async def create_run(self, goal: str) -> AgentRun: method create_task (line 24) | async def create_task(self, run_id: str, type_: Loop_Step) -> AgentTask: method validate_task_count (line 31) | async def validate_task_count(self, run_id: str, type_: str) -> None: FILE: platform/reworkd_platform/db/crud/base.py class BaseCrud (line 8) | class BaseCrud: method __init__ (line 9) | def __init__(self, session: AsyncSession): FILE: platform/reworkd_platform/db/crud/oauth.py class OAuthCrud (line 14) | class OAuthCrud(BaseCrud): method inject (line 16) | async def inject( method create_installation (line 22) | async def create_installation( method get_installation_by_state (line 33) | async def get_installation_by_state(self, state: str) -> Optional[Oaut... method get_installation_by_user_id (line 38) | async def get_installation_by_user_id( method get_installation_by_organization_id (line 49) | async def get_installation_by_organization_id( method get_all (line 61) | async def get_all(self, user: UserBase) -> Dict[str, str]: FILE: platform/reworkd_platform/db/crud/organization.py class OrgUser (line 18) | class OrgUser(BaseModel): class OrganizationUsers (line 24) | class OrganizationUsers(BaseModel): class OrganizationCrud (line 30) | class OrganizationCrud(BaseCrud): method __init__ (line 31) | def __init__(self, session: AsyncSession, user: UserBase): method inject (line 36) | def inject( method create_organization (line 43) | async def create_organization(self, name: str) -> Organization: method get_by_name (line 49) | async def get_by_name(self, name: str) -> Optional[OrganizationUsers]: FILE: platform/reworkd_platform/db/crud/user.py class UserCrud (line 11) | class UserCrud(BaseCrud): method get_user_session (line 12) | async def get_user_session(self, token: str) -> UserSession: method get_user_organization (line 20) | async def get_user_organization( FILE: platform/reworkd_platform/db/dependencies.py function get_db_session (line 7) | async def get_db_session(request: Request) -> AsyncGenerator[AsyncSessio... FILE: platform/reworkd_platform/db/models/__init__.py function load_all_models (line 6) | def load_all_models() -> None: FILE: platform/reworkd_platform/db/models/agent.py class AgentRun (line 7) | class AgentRun(Base): class AgentTask (line 17) | class AgentTask(Base): FILE: platform/reworkd_platform/db/models/auth.py class Organization (line 7) | class Organization(TrackedModel): class OrganizationUser (line 14) | class OrganizationUser(TrackedModel): class OauthCredentials (line 22) | class OauthCredentials(TrackedModel): FILE: platform/reworkd_platform/db/models/user.py class UserSession (line 9) | class UserSession(Base): class User (line 23) | class User(Base): FILE: platform/reworkd_platform/db/utils.py function create_engine (line 10) | def create_engine() -> AsyncEngine: function create_database (line 33) | async def create_database() -> None: function drop_database (line 53) | async def drop_database() -> None: FILE: platform/reworkd_platform/logging.py class InterceptHandler (line 10) | class InterceptHandler(logging.Handler): method emit (line 21) | def emit(self, record: logging.LogRecord) -> None: # pragma: no cover function configure_logging (line 44) | def configure_logging() -> None: # pragma: no cover FILE: platform/reworkd_platform/schemas/agent.py class ModelSettings (line 28) | class ModelSettings(BaseModel): method validate_max_tokens (line 36) | def validate_max_tokens(cls, v: float, values: Dict[str, Any]) -> float: class AgentRunCreate (line 43) | class AgentRunCreate(BaseModel): class AgentRun (line 48) | class AgentRun(AgentRunCreate): class AgentTaskAnalyze (line 52) | class AgentTaskAnalyze(AgentRun): class AgentTaskExecute (line 58) | class AgentTaskExecute(AgentRun): class AgentTaskCreate (line 63) | class AgentTaskCreate(AgentRun): class AgentSummarize (line 70) | class AgentSummarize(AgentRun): class AgentChat (line 74) | class AgentChat(AgentRun): class NewTasksResponse (line 79) | class NewTasksResponse(BaseModel): class RunCount (line 84) | class RunCount(BaseModel): FILE: platform/reworkd_platform/schemas/user.py class OrganizationRole (line 6) | class OrganizationRole(BaseModel): class UserBase (line 12) | class UserBase(BaseModel): method organization_id (line 20) | def organization_id(self) -> Optional[str]: FILE: platform/reworkd_platform/services/anthropic.py class AbstractPrompt (line 7) | class AbstractPrompt(BaseModel): method to_string (line 8) | def to_string(self) -> str: class HumanAssistantPrompt (line 12) | class HumanAssistantPrompt(AbstractPrompt): method to_string (line 16) | def to_string(self) -> str: class ClaudeService (line 22) | class ClaudeService: method __init__ (line 23) | def __init__(self, api_key: Optional[str], model: str = "claude-2"): method completion (line 27) | async def completion( FILE: platform/reworkd_platform/services/aws/s3.py class PresignedPost (line 14) | class PresignedPost(BaseModel): class SimpleStorageService (line 19) | class SimpleStorageService: method __init__ (line 22) | def __init__(self, bucket: Optional[str]) -> None: method create_presigned_upload_url (line 29) | def create_presigned_upload_url( method create_presigned_download_url (line 40) | def create_presigned_download_url(self, object_name: str) -> str: method upload_to_bucket (line 46) | def upload_to_bucket( method download_file (line 59) | def download_file(self, object_name: str, local_filename: str) -> None: method list_keys (line 64) | def list_keys(self, prefix: str) -> List[str]: method download_folder (line 71) | def download_folder(self, prefix: str, path: str) -> List[str]: method delete_folder (line 80) | def delete_folder(self, prefix: str) -> None: FILE: platform/reworkd_platform/services/oauth_installers.py class OAuthInstaller (line 18) | class OAuthInstaller(ABC): method __init__ (line 19) | def __init__(self, crud: OAuthCrud, settings: Settings): method install (line 24) | async def install(self, user: UserBase, redirect_uri: str) -> str: method install_callback (line 28) | async def install_callback(self, code: str, state: str) -> OauthCreden... method uninstall (line 32) | async def uninstall(self, user: UserBase) -> bool: method store_access_token (line 36) | def store_access_token(creds: OauthCredentials, access_token: str) -> ... method store_refresh_token (line 40) | def store_refresh_token(creds: OauthCredentials, refresh_token: str) -... class SIDInstaller (line 44) | class SIDInstaller(OAuthInstaller): method install (line 47) | async def install(self, user: UserBase, redirect_uri: str) -> str: method install_callback (line 72) | async def install_callback(self, code: str, state: str) -> OauthCreden... method uninstall (line 101) | async def uninstall(self, user: UserBase) -> bool: function installer_factory (line 135) | def installer_factory( FILE: platform/reworkd_platform/services/pinecone/lifetime.py function init_pinecone (line 6) | def init_pinecone() -> None: FILE: platform/reworkd_platform/services/pinecone/pinecone.py class Row (line 18) | class Row(BaseModel): class QueryResult (line 24) | class QueryResult(BaseModel): class PineconeMemory (line 30) | class PineconeMemory(AgentMemory): method __init__ (line 35) | def __init__(self, index_name: str, namespace: str = ""): method __enter__ (line 40) | def __enter__(self) -> AgentMemory: method __exit__ (line 48) | def __exit__(self, *args: Any, **kwargs: Any) -> None: method reset_class (line 52) | def reset_class(self) -> None: method add_tasks (line 56) | def add_tasks(self, tasks: List[str]) -> List[str]: method get_similar_tasks (line 77) | def get_similar_tasks( method should_use (line 97) | def should_use() -> bool: FILE: platform/reworkd_platform/services/security.py class EncryptionService (line 9) | class EncryptionService: method __init__ (line 10) | def __init__(self, secret: bytes): method encrypt (line 13) | def encrypt(self, text: str) -> bytes: method decrypt (line 16) | def decrypt(self, encoded_bytes: Union[bytes, str]) -> str: FILE: platform/reworkd_platform/services/ssl.py function get_ssl_context (line 10) | def get_ssl_context( FILE: platform/reworkd_platform/services/tokenizer/dependencies.py function get_token_service (line 6) | def get_token_service(request: Request) -> TokenService: FILE: platform/reworkd_platform/services/tokenizer/lifetime.py function init_tokenizer (line 7) | def init_tokenizer(app: FastAPI) -> None: # pragma: no cover FILE: platform/reworkd_platform/services/tokenizer/token_service.py class TokenService (line 7) | class TokenService: method __init__ (line 8) | def __init__(self, encoding: Encoding): method create (line 12) | def create(cls, encoding: str = "cl100k_base") -> "TokenService": method tokenize (line 15) | def tokenize(self, text: str) -> list[int]: method detokenize (line 18) | def detokenize(self, tokens: list[int]) -> str: method count (line 21) | def count(self, text: str) -> int: method get_completion_space (line 24) | def get_completion_space(self, model: LLM_Model, *prompts: str) -> int: method calculate_max_tokens (line 29) | def calculate_max_tokens(self, model: WrappedChatOpenAI, *prompts: str... FILE: platform/reworkd_platform/settings.py class Settings (line 34) | class Settings(BaseSettings): method kafka_consumer_group (line 110) | def kafka_consumer_group(self) -> str: method db_url (line 122) | def db_url(self) -> URL: method pusher_enabled (line 133) | def pusher_enabled(self) -> bool: method kafka_enabled (line 144) | def kafka_enabled(self) -> bool: method helicone_enabled (line 154) | def helicone_enabled(self) -> bool: method sid_enabled (line 163) | def sid_enabled(self) -> bool: class Config (line 172) | class Config: FILE: platform/reworkd_platform/tests/agent/test_analysis.py function test_analysis_model (line 8) | def test_analysis_model() -> None: function test_analysis_model_search_empty_arg (line 17) | def test_analysis_model_search_empty_arg() -> None: function test_analysis_model_search_non_empty_arg (line 22) | def test_analysis_model_search_non_empty_arg() -> None: function test_analysis_model_invalid_tool (line 29) | def test_analysis_model_invalid_tool() -> None: FILE: platform/reworkd_platform/tests/agent/test_crud.py function test_validate_task_count_no_error (line 13) | async def test_validate_task_count_no_error(mocker) -> None: function test_validate_task_count_when_run_not_found (line 23) | async def test_validate_task_count_when_run_not_found(mocker: MockerFixt... function test_validate_task_count_max_loops_error (line 32) | async def test_validate_task_count_max_loops_error(mocker: MockerFixture... function test_validate_task_count_multiple_summary_error (line 42) | async def test_validate_task_count_multiple_summary_error( function mock_agent_run_exists (line 53) | def mock_agent_run_exists(mocker: MockerFixture, exists: bool) -> None: function mock_session_with_run_count (line 57) | def mock_session_with_run_count(mocker: MockerFixture, run_count: int) -... FILE: platform/reworkd_platform/tests/agent/test_model_factory.py function test_helicone_enabled_without_custom_api_key (line 16) | def test_helicone_enabled_without_custom_api_key(): function test_helicone_disabled (line 37) | def test_helicone_disabled(): function test_helicone_enabled_with_custom_api_key (line 48) | def test_helicone_enabled_with_custom_api_key(): function test_create_model (line 75) | def test_create_model(streaming, use_azure): function test_custom_model_settings (line 127) | def test_custom_model_settings(model_settings: ModelSettings, streaming:... FILE: platform/reworkd_platform/tests/agent/test_task_output_parser.py function test_parse_success (line 32) | def test_parse_success(input_text: str, expected_output: List[str]) -> N... function test_parse_with_completed_tasks (line 38) | def test_parse_with_completed_tasks() -> None: function test_parse_failure (line 67) | def test_parse_failure(input_text: str, exception: Type[Exception]) -> N... function test_extract_array_success (line 132) | def test_extract_array_success(input_str: str, expected: List[str]) -> N... function test_extract_array_exception (line 148) | def test_extract_array_exception(input_str: str, exception: Type[Excepti... function test_remove_task_prefix (line 186) | def test_remove_task_prefix(task_input: str, expected_output: str) -> None: function test_real_tasks_filter_no_task (line 202) | def test_real_tasks_filter_no_task(input_text: str, expected_result: boo... FILE: platform/reworkd_platform/tests/agent/test_tools.py function test_get_tool_name (line 18) | def test_get_tool_name() -> None: function test_format_tool_name (line 24) | def test_format_tool_name() -> None: function test_get_tools_overview_no_duplicates (line 31) | def test_get_tools_overview_no_duplicates() -> None: function test_get_default_tool (line 48) | def test_get_default_tool() -> None: function test_get_tool_from_name (line 52) | def test_get_tool_from_name() -> None: FILE: platform/reworkd_platform/tests/memory/memory_with_fallback_test.py function test_memory_primary (line 14) | def test_memory_primary(mocker, method_name: str, args) -> None: function test_memory_fallback (line 33) | def test_memory_fallback(mocker, method_name: str, args) -> None: FILE: platform/reworkd_platform/tests/test_dependancies.py function test_agent_validate (line 17) | async def test_agent_validate(mocker, validator, step): FILE: platform/reworkd_platform/tests/test_helpers.py function act (line 9) | async def act(*args, settings: ModelSettings = ModelSettings(), **kwargs): function test_service_unavailable_error (line 14) | async def test_service_unavailable_error(): function test_should_log (line 30) | async def test_should_log(settings, should_log): FILE: platform/reworkd_platform/tests/test_oauth_installers.py function test_installer_factory (line 6) | def test_installer_factory(mocker): function test_integration_dne (line 11) | def test_integration_dne(mocker): FILE: platform/reworkd_platform/tests/test_reworkd_platform.py function test_health (line 9) | async def test_health(client: AsyncClient, fastapi_app: FastAPI) -> None: FILE: platform/reworkd_platform/tests/test_s3.py function test_create_signed_post (line 4) | def test_create_signed_post(mocker): FILE: platform/reworkd_platform/tests/test_schemas.py function test_model_settings_valid (line 25) | def test_model_settings_valid(settings): function test_model_settings_invalid (line 51) | def test_model_settings_invalid(settings): function test_model_settings_default (line 56) | def test_model_settings_default(): FILE: platform/reworkd_platform/tests/test_security.py function test_encrypt_decrypt (line 8) | def test_encrypt_decrypt(): function test_invalid_key (line 19) | def test_invalid_key(): FILE: platform/reworkd_platform/tests/test_settings.py function test_settings_create (line 4) | def test_settings_create(): FILE: platform/reworkd_platform/tests/test_token_service.py function test_happy_path (line 11) | def test_happy_path() -> None: function test_nothing (line 17) | def test_nothing() -> None: function validate_tokenize_and_detokenize (line 23) | def validate_tokenize_and_detokenize( function test_calculate_max_tokens_with_small_max_tokens (line 32) | def test_calculate_max_tokens_with_small_max_tokens() -> None: function test_calculate_max_tokens_with_high_completion_tokens (line 44) | def test_calculate_max_tokens_with_high_completion_tokens() -> None: function test_calculate_max_tokens_with_negative_result (line 58) | def test_calculate_max_tokens_with_negative_result() -> None: FILE: platform/reworkd_platform/timer.py function timed_function (line 18) | def timed_function(level: Log_Level = "INFO") -> Callable[..., Any]: FILE: platform/reworkd_platform/web/api/agent/agent_service/agent_service.py class AgentService (line 8) | class AgentService(Protocol): method start_goal_agent (line 9) | async def start_goal_agent(self, *, goal: str) -> List[str]: method analyze_task_agent (line 12) | async def analyze_task_agent( method execute_task_agent (line 17) | async def execute_task_agent( method create_tasks_agent (line 26) | async def create_tasks_agent( method summarize_task_agent (line 37) | async def summarize_task_agent( method chat (line 45) | async def chat( FILE: platform/reworkd_platform/web/api/agent/agent_service/agent_service_provider.py function get_agent_service (line 22) | def get_agent_service( FILE: platform/reworkd_platform/web/api/agent/agent_service/mock_agent_service.py class MockAgentService (line 13) | class MockAgentService(AgentService): method start_goal_agent (line 14) | async def start_goal_agent(self, **kwargs: Any) -> List[str]: method create_tasks_agent (line 18) | async def create_tasks_agent(self, **kwargs: Any) -> List[str]: method analyze_task_agent (line 22) | async def analyze_task_agent(self, **kwargs: Any) -> Analysis: method execute_task_agent (line 30) | async def execute_task_agent(self, **kwargs: Any) -> FastAPIStreamingR... method summarize_task_agent (line 45) | async def summarize_task_agent( method chat (line 64) | async def chat( FILE: platform/reworkd_platform/web/api/agent/agent_service/open_ai_agent_service.py class OpenAIAgentService (line 43) | class OpenAIAgentService(AgentService): method __init__ (line 44) | def __init__( method start_goal_agent (line 60) | async def start_goal_agent(self, *, goal: str) -> List[str]: method analyze_task_agent (line 88) | async def analyze_task_agent( method execute_task_agent (line 126) | async def execute_task_agent( method create_tasks_agent (line 146) | async def create_tasks_agent( method summarize_task_agent (line 178) | async def summarize_task_agent( method chat (line 199) | async def chat( FILE: platform/reworkd_platform/web/api/agent/analysis.py class AnalysisArguments (line 6) | class AnalysisArguments(BaseModel): class Analysis (line 15) | class Analysis(AnalysisArguments): method action_must_be_valid_tool (line 19) | def action_must_be_valid_tool(cls, v: str) -> str: method search_action_must_have_arg (line 28) | def search_action_must_have_arg(cls, v: str, values: Dict[str, str]) -... method get_default_analysis (line 37) | def get_default_analysis(cls, task: str) -> "Analysis": FILE: platform/reworkd_platform/web/api/agent/dependancies.py function agent_crud (line 26) | def agent_crud( function agent_start_validator (line 33) | async def agent_start_validator( function validate (line 48) | async def validate(body: T, crud: AgentCRUD, type_: Loop_Step) -> T: function agent_analyze_validator (line 53) | async def agent_analyze_validator( function agent_execute_validator (line 60) | async def agent_execute_validator( function agent_create_validator (line 77) | async def agent_create_validator( function agent_summarize_validator (line 84) | async def agent_summarize_validator( function agent_chat_validator (line 91) | async def agent_chat_validator( FILE: platform/reworkd_platform/web/api/agent/helpers.py function parse_with_handling (line 19) | def parse_with_handling(parser: BaseOutputParser[T], completion: str) -> T: function openai_error_handler (line 28) | async def openai_error_handler( function call_model_with_handling (line 68) | async def call_model_with_handling( FILE: platform/reworkd_platform/web/api/agent/model_factory.py class WrappedChatOpenAI (line 11) | class WrappedChatOpenAI(ChatOpenAI): class WrappedAzureChatOpenAI (line 20) | class WrappedAzureChatOpenAI(AzureChatOpenAI, WrappedChatOpenAI): function create_model (line 29) | def create_model( function get_base_and_headers (line 72) | def get_base_and_headers( FILE: platform/reworkd_platform/web/api/agent/stream_mock.py function stream_string (line 11) | def stream_string(data: str, delayed: bool = False) -> FastAPIStreamingR... function stream_generator (line 17) | async def stream_generator(data: str, delayed: bool) -> AsyncGenerator[b... FILE: platform/reworkd_platform/web/api/agent/task_output_parser.py class TaskOutputParser (line 8) | class TaskOutputParser(BaseOutputParser[List[str]]): method __init__ (line 16) | def __init__(self, *, completed_tasks: List[str]): method parse (line 20) | def parse(self, text: str) -> List[str]: method get_format_instructions (line 31) | def get_format_instructions(self) -> str: function extract_array (line 41) | def extract_array(input_str: str) -> List[str]: function handle_multiline_string (line 53) | def handle_multiline_string(input_str: str) -> List[str]: function remove_prefix (line 68) | def remove_prefix(input_str: str) -> str: function real_tasks_filter (line 76) | def real_tasks_filter(input_str: str) -> bool: FILE: platform/reworkd_platform/web/api/agent/tools/code.py class Code (line 10) | class Code(Tool): method call (line 14) | async def call( FILE: platform/reworkd_platform/web/api/agent/tools/conclude.py class Conclude (line 9) | class Conclude(Tool): method call (line 12) | async def call( FILE: platform/reworkd_platform/web/api/agent/tools/image.py function get_replicate_image (line 15) | async def get_replicate_image(input_str: str) -> str: function get_open_ai_image (line 36) | async def get_open_ai_image(input_str: str) -> str: class Image (line 47) | class Image(Tool): method call (line 57) | async def call( FILE: platform/reworkd_platform/web/api/agent/tools/open_ai_function.py class FunctionDescription (line 7) | class FunctionDescription(TypedDict): function get_tool_function (line 18) | def get_tool_function(tool: Type[Tool]) -> FunctionDescription: FILE: platform/reworkd_platform/web/api/agent/tools/reason.py class Reason (line 10) | class Reason(Tool): method call (line 16) | async def call( FILE: platform/reworkd_platform/web/api/agent/tools/search.py function _google_serper_search_results (line 22) | async def _google_serper_search_results( class Search (line 42) | class Search(Tool): method available (line 52) | def available() -> bool: method call (line 55) | async def call( method _call (line 66) | async def _call( FILE: platform/reworkd_platform/web/api/agent/tools/sidsearch.py function _sid_search_results (line 21) | async def _sid_search_results( function token_exchange (line 38) | async def token_exchange(refresh_token: str) -> tuple[str, datetime]: function get_access_token (line 57) | async def get_access_token( class SID (line 72) | class SID(Tool): method available (line 84) | def available() -> bool: method dynamic_available (line 88) | async def dynamic_available(user: UserBase, oauth_crud: OAuthCrud) -> ... method _run_sid (line 95) | async def _run_sid( method call (line 130) | async def call( FILE: platform/reworkd_platform/web/api/agent/tools/tool.py class Tool (line 11) | class Tool(ABC): method __init__ (line 20) | def __init__(self, model: BaseChatModel, language: str): method available (line 25) | def available() -> bool: method dynamic_available (line 29) | async def dynamic_available(user: UserBase, oauth_crud: OAuthCrud) -> ... method call (line 33) | async def call( FILE: platform/reworkd_platform/web/api/agent/tools/tools.py function get_user_tools (line 12) | async def get_user_tools( function get_available_tools (line 19) | def get_available_tools() -> List[Type[Tool]]: function get_available_tools_names (line 23) | def get_available_tools_names() -> List[str]: function get_external_tools (line 27) | def get_external_tools() -> List[Type[Tool]]: function get_default_tools (line 36) | def get_default_tools() -> List[Type[Tool]]: function get_tool_name (line 42) | def get_tool_name(tool: Type[Tool]) -> str: function format_tool_name (line 46) | def format_tool_name(tool_name: str) -> str: function get_tools_overview (line 50) | def get_tools_overview(tools: List[Type[Tool]]) -> str: function get_tool_from_name (line 65) | def get_tool_from_name(tool_name: str) -> Type[Tool]: function get_default_tool (line 73) | def get_default_tool() -> Type[Tool]: function get_default_tool_name (line 77) | def get_default_tool_name() -> str: FILE: platform/reworkd_platform/web/api/agent/tools/utils.py class CitedSnippet (line 11) | class CitedSnippet: method __repr__ (line 16) | def __repr__(self) -> str: class Snippet (line 24) | class Snippet: method __repr__ (line 27) | def __repr__(self) -> str: function summarize (line 34) | def summarize( function summarize_with_sources (line 55) | def summarize_with_sources( function summarize_sid (line 78) | def summarize_sid( FILE: platform/reworkd_platform/web/api/agent/tools/wikipedia_search.py class Wikipedia (line 10) | class Wikipedia(Tool): method call (line 20) | async def call( FILE: platform/reworkd_platform/web/api/agent/views.py function start_tasks (line 37) | async def start_tasks( function analyze_tasks (line 46) | async def analyze_tasks( function execute_tasks (line 58) | async def execute_tasks( function create_tasks (line 72) | async def create_tasks( function summarize (line 87) | async def summarize( function chat (line 104) | async def chat( class ToolModel (line 120) | class ToolModel(BaseModel): class ToolsResponse (line 127) | class ToolsResponse(BaseModel): function get_user_tools (line 132) | async def get_user_tools() -> ToolsResponse: FILE: platform/reworkd_platform/web/api/auth/views.py function organizations (line 17) | async def organizations( function oauth_install (line 26) | async def oauth_install( function oauth_uninstall (line 36) | async def oauth_uninstall( function oauth_callback (line 47) | async def oauth_callback( function sid_info (line 63) | async def sid_info( FILE: platform/reworkd_platform/web/api/dependencies.py function user_crud (line 15) | def user_crud( function get_current_user (line 21) | async def get_current_user( FILE: platform/reworkd_platform/web/api/error_handling.py function platformatic_exception_handler (line 8) | async def platformatic_exception_handler( FILE: platform/reworkd_platform/web/api/errors.py class PlatformaticError (line 1) | class PlatformaticError(Exception): method __init__ (line 12) | def __init__( class OpenAIError (line 25) | class OpenAIError(PlatformaticError): class ReplicateError (line 29) | class ReplicateError(PlatformaticError): class MaxLoopsError (line 33) | class MaxLoopsError(PlatformaticError): class MultipleSummaryError (line 37) | class MultipleSummaryError(PlatformaticError): FILE: platform/reworkd_platform/web/api/http_responses.py function forbidden (line 4) | def forbidden(detail: str = "Forbidden") -> HTTPException: function not_found (line 8) | def not_found(detail: str = "Not Found") -> HTTPException: FILE: platform/reworkd_platform/web/api/memory/memory.py class AgentMemory (line 7) | class AgentMemory(ABC): method __enter__ (line 14) | def __enter__(self) -> "AgentMemory": method __exit__ (line 18) | def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> N... method add_tasks (line 22) | def add_tasks(self, tasks: List[str]) -> List[str]: method get_similar_tasks (line 26) | def get_similar_tasks(self, query: str, score_threshold: float = 0.95)... method reset_class (line 30) | def reset_class(self) -> None: method should_use (line 34) | def should_use() -> bool: FILE: platform/reworkd_platform/web/api/memory/memory_with_fallback.py class MemoryWithFallback (line 10) | class MemoryWithFallback(AgentMemory): method __init__ (line 16) | def __init__(self, primary: AgentMemory, secondary: AgentMemory): method __enter__ (line 20) | def __enter__(self) -> AgentMemory: method __exit__ (line 27) | def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> N... method add_tasks (line 34) | def add_tasks(self, tasks: List[str]) -> List[str]: method get_similar_tasks (line 41) | def get_similar_tasks(self, query: str, score_threshold: float = 0) ->... method reset_class (line 48) | def reset_class(self) -> None: FILE: platform/reworkd_platform/web/api/memory/null.py class NullAgentMemory (line 6) | class NullAgentMemory(AgentMemory): method __enter__ (line 12) | def __enter__(self) -> AgentMemory: method __exit__ (line 15) | def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> N... method add_tasks (line 18) | def add_tasks(self, tasks: List[str]) -> List[str]: method get_similar_tasks (line 21) | def get_similar_tasks(self, query: str, score_threshold: float = 0) ->... method reset_class (line 24) | def reset_class(self) -> None: FILE: platform/reworkd_platform/web/api/metadata.py class Metadata (line 14) | class Metadata(BaseModel): function extract_metadata (line 23) | async def extract_metadata(url: str) -> Metadata: FILE: platform/reworkd_platform/web/api/models/views.py class ModelWithAccess (line 13) | class ModelWithAccess(BaseModel): method from_model (line 21) | def from_model(name: str, max_tokens: int, user: UserBase) -> "ModelWi... function get_models (line 27) | async def get_models( FILE: platform/reworkd_platform/web/api/monitoring/views.py function health_check (line 7) | def health_check() -> None: function error_check (line 16) | def error_check() -> None: FILE: platform/reworkd_platform/web/application.py function get_app (line 18) | def get_app() -> FastAPI: FILE: platform/reworkd_platform/web/lifetime.py function _setup_db (line 12) | def _setup_db(app: FastAPI) -> None: # pragma: no cover function _create_tables (line 31) | async def _create_tables() -> None: # pragma: no cover function register_startup_event (line 41) | def register_startup_event( function register_shutdown_event (line 63) | def register_shutdown_event(